##TodoAppp SERVER It is a NodeJS application using express. In order to run it locally, you can follow the below steps. Prerequisite:
- Node version 18.x to be installed on the system
- Docker
please check /api-docs for the swagger documentation
- Install dependencies
npm install
- Create a .env file under root(api-server) and set below properties
MONGO_USERNAME=<value>
MONGO_PASSWORD=<value>
MONGO_HOST=<value>
MONGO_PORT=<value>
MONGO_DB_NAME=<value>
REDIS_URL=<value>
MONGO_URL=<value> #this can used instead other mongo envs if u have url
PORT=<value>
- Run in development mode( this will restart the server whenever some src file changes )
npm run start
Use below command to run only unit tests
npm run test
- Run mongodb and redis
docker-compose up -d
- To check whether the db is up and runnning
docker ps
- To connect with mongodb from terminal
- Install mongosh
brew install mongosh
- Url to connect with mongodb
mongosh "mongodb://root:[email protected]:27017/test?authSource=admin"