This is a server-side application for a task management system. It is built using Node.js, Express, and MongoDB.
- Node.js
- Express
- MongoDB
- Docker
- Docker Compose
git clone https://github.com/RiveraHan/task_server.git
cd task-server
npm install
cp .env.example .env
# open .env and modify the environment variables (if needed)
Running locally:
npm run dev
Running in production:
npm run start
Testing:
# run all tests
npm run test
# run all tests in watch mode
npm run test:watch
# run test coverage
npm run coverage
Docker:
# run docker container in development mode
npm run docker:dev
# run docker container in production mode
npm run docker:prod
# run all tests in a docker container
npm run docker:test
Linting:
# run ESLint
npm run lint
# fix ESLint errors
npm run lint:fix
# run prettier
npm run prettier
# fix prettier errors
npm run prettier:fix
The app should now be running on http://localhost:4000.