⚡️ Rest API
⚡️ Authentication
⚡️ Database Support
⚡️ Image Uploading
⚡️ Pagination
⚡️ Sorting
⚡️ Email Service
To view a live example, click here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
You'll need Git and Node.js (which comes with NPM) installed on your computer.
[email protected] or higher
[email protected] or higher
[email protected] or higher
From your command line, first clone taskmanager:
# Clone this repository
$ git clone https://github.com/laraib-sidd/task_manager.git
# Go into the repository
$ cd task_manager
Then you can install the dependencies either using NPM or Yarn:
Using NPM:
# Install dependencies
$ npm install
# Start development server
$ npm run develop
Using Yarn:
# Install dependencies
$ yarn
# Start development server
$ yarn develop
ApiKeys required:
* MongoDB URI
* Mailgun ApiKey
* Mailgun Domain
NOTE: If your run into issues installing the dependencies with NPM, use this command:
# Install dependencies with all permissions
$ sudo npm install --unsafe-perm=true --allow-root
Do a post request at https://localhost:3000/user/register
with proper data to register a user.:
Do a post request at https://localhost:3000/user/me/avatar
with a file to upload it.
Do a post request at https://localhost:3000/user/login
with valid credentials.
Do a get request at https://localhost:3000/user/me
with valid details regardig the task.
Do a post request at https://localhost:3000/task/
with valid details regardig the task.
Do a delete request at https://localhost:3000/task/:id
with valid details regardig the task.
Do a delete request at https://localhost:3000/user/me
with valid details regardig the task.
- Here is the shareble link to the postman collection with all the routes : Colllection
You can test the Rest api using the jest test build using:
npm run test
- Laraib Siddiqui - https://github.com/laraib-sidd
This project is licensed under the MIT License - see the LICENSE.md file for details