Sign inSign up

batazor/shortlink-ui-nuxt

By batazor

Updated over 5 years ago

Image
0

2.7K

batazor/shortlink-ui-nuxt repository overview

PkgGoDev codecov Go Report Card Releases LICENSE CII Best Practices

Shortlink service

High Level Architecture

shortlink-arhitecture

Architecture (miro.com)
Requirements
  • docker
  • docker-compose
  • protoc 3.7.1+
  • ansible
  • ansible-galaxy
Services
ServiceDescriptionLanguage/FrameworkDocs
shortlinkShortlink serviceGo
loggerLogger serviceGo
botSend notify to smtp, slack, telegramGo
shortctlShortlink CLIGodocs
Run
make run
Kubernetes
make minikube-up
make helm-shortlink-up
DNS/HTTP

services:

  • ui-nuxt.local
  • shortlink.local

Add 127.0.0.1 [name services].local to your /etc/hosts

HTTP API

arhitecture.json

Support HTTP REST API:
MQ
Store provider
  • RAM
  • MongoDB
  • Postgres
  • Optional
    • Redis
    • MySQL
    • LevelDB
    • Badger
    • SQLite
    • Scylla
    • Сassandra (via: Scylla driver)
    • RethinkDB
    • DGraph
Cloud-Native
Gateway
  • Traefik
  • Nginx
UI service
ServiceDescriptionLanguage/Framework
landingWelcome pageJS/JQuery
nextUI serviceJS/ReactJS
nuxtUI serviceJS/VueJS
ENV for UI

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

NameDefaultDescription
NODE_ENV-Select: production, development, etc...
SENTRY_DSN-Your sentry DSN
API_URL_HTTPhttp://localhost:7070HTTP API Endpoint
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-nuxt.shortlink.vagrant:8081

Kubernetes
DETAILS

HELM
  • common - run common tools (ingress)
  • shortlink-* - run shortlink applications (api, logger, ui)
  • chaos - run chaos daemon
  • ingress - run ingress ;-)
DNS
  • ui-nuxt.local
  • grafana.local
  • jaeger.local
  • prometheus.local

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
Error code
CODEDescribe
0SUCCESS
1ERROR_CONFIG

-- THE END --

Tag summary

Content type

Image

Digest

Size

11.2 MB

Last updated

over 5 years ago

docker pull batazor/shortlink-ui-nuxt