This project is a Node.js application that demonstrates various features including image upload and retrieval using Express and Mongoose, JWT authentication, validation, instance and virtual methods in Mongoose, and Docker support.
-
Mongoose
- Full TypeScript support
- Instance methods
- Virtual methods
- Complex schema usage
- Validation and various types
-
Routes
- User
- Add user
- Log user
- Logout user
- Patch user
- Delete user
- Upload avatar
- Get avatar
- Tasks
- Add task
- Query tasks using query params
- User
-
Docker
- Support for Docker
- Refer to the Dockerfile for more information
- Technologies: Node.js, Express.js, TypeScript, Docker
- Libraries: Mongoose, Express, CORS, cookie-parser, jsonwebtoken, multer, dotenv
-
Clone the repository:
git clone https://github.com/Paviter-Singh/task-manager-ts
-
Install dependencies:
npm install
-
For development mode, start with:
npm run dev
-
For production mode, use:
npm start
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Create a new branch:
git checkout -b feature/my-feature
. - Make your changes and commit them:
git commit -am 'Add some feature'
. - Push to the branch:
git push origin feature/my-feature
. - Submit a pull request.
This project is licensed under the MIT License.