Microservice Boilerplate
Start
Edit .env file and set vars.
Auth Service
Please start your auth service and set host in .env
ZSH users
If you edit the .env file you need to reload with:
. ~/.zshrc
Automatic (docker build, n2k8 for k8 resources and sh createk8.sh)
npm run full
Manual Steps
Build Docker
docker build -t microservice-boilerplate .
Build Kubernetes Files
Run:
n2k8
and follow the cli.
Create resources
sh ./scripts/createk8.sh
or
chmod +x && ./scripts/createk8.sh
Delete resources
sh ./scripts/deletek8.sh
or
chmod +x && ./scripts/deletek8.sh
Database connection
Check config/config.js for env vars that need to be set.
Sequelize ORM
Packages for postgres installed. If you want to use MySQL or SQLite, please install the respective packages.