git clone
npm install
# update env, follow instructions in example file
# setup mongodb locally
cp .env.sample to .env
# for nodemon, otherwise npm start
npm run dev
# create admin account after setting up client and server
curl <server>/api/auth/init
docker pull kailashsankar/frontline_server
docker run -d --restart=always --network=pulse --name=frontline_server -p 0.0.0.0:3080:80 frontline_server:current
# move the .env file to a local path
docker build -t frontline_server:latest .
docker run -d --restart=always --name=frontline_server -p 0.0.0.0:3080:80 -v /<path_to_env>/.env:/app/.env frontline_server:latest
Note: automate some of the manual steps with alfred for dev environments
it's a hacked up cli util to avoid typing large docker commands one by one,
help guide is in the repo: https://github.com/Kailash-Sankar/alfred
https://github.com/Kailash-Sankar/study_notes/blob/master/docker.md
Created with boilterplate: rest-api-nodejs-mongodb
Thanks goes to these wonderful people (emoji key):
Kailash Sankar 💻 |
Kannan Nagarajan 💻 |
Kishor K Jagadeesan 💻 |
This project follows the all-contributors specification. Contributions of any kind welcome!