The first thing you need to do to get this app working is to install the Node modules with the following command:
npm install
Change the environment varible DB_CONNECT
with your username, password and host name in the appropriate places.
npm start
It will start the Node back end server at http://localhost:3035, with Nodemon, so that updates happen automatically on save.
To register users :
http://localhost:3035/api/candidate/
To view all the users :
http://localhost:3035/api/candidate/list [GET]
To edit the user :
http://localhost:3035/api/candidate/edit/:id [GET]
mongo
use resume-system
show tables
Change the mongo container environment variablesMONGO_INITDB_ROOT_USERNAME
,MONGO_INITDB_ROOT_PASSWORD
to your mongodb username, password respectively in the docker-compose.yml file.
# Run in Docker
docker-compose up
# use -d flag to run in background
# Tear down
docker-compose down
# To be able to edit files, add volume to compose file
volumes: ['./:/usr/src/app']
# To re-build
docker-compose build