wilsonfilhodev / api-express-example

Api Restfull CRUD using Node.js + Express + Mongoose + Jwt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

api-express-example

Example api rest using Node.js, Express, Mongoose and Jwt

Running the project

$ git clone https://github.com/wilsonfilhodev/api-express-example.git
$ cd express-app
$ npm install
$ npm start

Examples


  Example data: (all fields in example is required)
  
  {
    "name": "Wilson Filho",
    "email": "will@email.com",
    "password": "123456"
  }
  

  Example data: (all fields in example is required)
  
  {
    "email": "will@email.com",
    "password": "123456"
  }
  

  Example data: (all fields in example is required)
  
  {
    "email": "will@email.com"
  }
  

Atencion: This request sends an email with a token to reset the password. We use mailtrap as the mail server in this project. Configure the e-mail data in the config.js file to receive the e-mail correctly.


  Example data: (all fields in example is required)
  
  {
    "title": "My project",
    "description": "Project description",
    "tasks": [{
      "title": "Title task",
      "assignedTo": "5c10456a85c2cf4c50cb7e57"
    }]
  }
  

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

Api Restfull CRUD using Node.js + Express + Mongoose + Jwt


Languages

Language:JavaScript 99.2%Language:HTML 0.8%