Sign inSign up

batazor/shortlink-link

By batazor

Updated about 5 years ago

Image
0

1.8K

batazor/shortlink-link repository overview

Shortlink service

PkgGoDev codecov Go Report Card Releases LICENSE CII Best Practices


High Level Architecture 🚀

shortlink-arhitecture

Architecture (miro.com)
Services
ServiceDescriptionLanguage/FrameworkDocs
landingWelcome pageJS/JQuery
docsExample blogHugohttps://shrts.ru
nextUI serviceJS/NextJSdocs
apiGateWayGodocs
linkLink serviceGodocs
proxyProxy service for redirect to original URLTypeScript
botTelegram botJAVA
loggerLogger serviceGo
metadataParser site by APIGo
notifySend notify to smtp, slack, telegramGo
shortctlShortlink CLIGodocs
csiCSI exampleGo
ory/kratosUser management serviceGodocs
ory/hydraOAuth 2.0 ProviderGodocs
Run
DETAILS

Require
Install GIT sub-repository
git submodule update --init --recursive
docker-compose
For run
make run
For down
make down
Kubernetes (1.19+)
For run
make minikube-up
make helm-shortlink-up
For down
make minikube-down
For run
make skaffold-init
make skaffold-up
For down
make skaffold-down
Debug mode
make skaffold-debug

HTTP API

arhitecture.json

Support HTTP REST API:
MQ
OpenTracing

http_add_link

Cloud-Native
Gateway
  • Traefik
  • Nginx
UI
ENV for UI

Use .env file in ui/[next/etc] directories for setting your UI

NameDefaultDescription
NODE_ENV-Select: production, development, etc...
SENTRY_DSN-Your sentry DSN
UI Screenshot
DescribeScreenshot
Link Tablelink table
Mobile
  • Hello World on flutter ;-)
Configuration
DETAILS

12 factors: ENV

View ENV Variables

CoreDNS IP table
ServiceIp addressDescription
store10.5.0.100Main database (postgres/mongo/cassandra/redis)
troubleshooting

Sometimes a container without a specified ip may occupy a binding address of another service, which will result in Address already in use.

Ansible
DETAILS

Vagrant
cd ops/vagrant
vagrant up

cd ops/ansible
ansible-playbook playbooks/playbook.yml
DNS/HTTP
  • ui-next.shortlink.vagrant:8081

GITLAB CI

GitLab Variable
  • SURGE_LOGIN
  • SURGE_TOKEN
  • DANGER_GITLAB_API_TOKEN - API TOKEN for danger
Support environment
GitHub CI
  • Travis action (backend/frontend)
  • Docker action
  • Helm chart

-- THE END --

Tag summary

Content type

Image

Digest

Size

16.9 MB

Last updated

about 5 years ago

docker pull batazor/shortlink-link