TaskPro API
TaskPro backend
API for TaskPro project. The MongoDB database is used, and the Mongoose library is used to connect to the database. Used HTTP request methods (GET, POST, PUT, PATCH, DELETE). Authentication using JWT and user authorization using email and password is done. The user's password is stored in hashed form. The CORS mechanism is implemented. Only an authorized user can use the application. Each user creates his own tasks that only he can see. Developed API documentation.
- utilities: VS Code, Postman, MongoDB Compass
- server environment: Node.js
- framework: Express.js
- library: Mongoose
- database: MongoDB
- modules: morgan, cors, joi, multer, morgan, uuid, jsonwebtoken, jimp, cloudinary, multer-storage-cloudinary, dotenv, bcrypt, nodemon, eslint, swagger-ui-express
- cloud services: Cloudinary, Render
- Make sure you have an LTS version of Node.js installed on your computer. Download and install if needed
- Install the basic project dependencies with the
npm i
command - Create file .env (for example the .env.template), with your data
- Commands for developers:
npm start
— server start in production modenpm run dev
— start the server in development modenpm run lint
— run a code check run with eslint, must run before each PR and fix all linter errorsnpm lint:fix
— the same linter check, but with automatic fixes for simple errors
- API is available at http://localhost:5000