Skip to content
This repository has been archived by the owner on Apr 29, 2021. It is now read-only.

Kailash-Sankar/frontline_server

Repository files navigation

Frontline volunteer app server

All Contributors

Codacy Badge Known Vulnerabilities Docker Image Size (latest by date)

local setup

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

from docker hub

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

local docker setup

# 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

mongo db instructions

https://github.com/Kailash-Sankar/study_notes/blob/master/docker.md

Created with boilterplate: rest-api-nodejs-mongodb

Contributors ✨

Contribution Guidelines

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!