Skip to content

Latest commit

 

History

History
54 lines (40 loc) · 1.35 KB

README.md

File metadata and controls

54 lines (40 loc) · 1.35 KB

API NodeJS with MongoDB - Boilerplate

This is a straightforward boilerplate for building REST APIs with ES6 and Express.

Getting Started

# clone it
git clone https://github.com/caioorg/api-node.git
cd api-node

# Make it your own
rm -rf .git && git init && npm init

# Install dependencies
npm install

# Start project development
npm run dev

# If you want to start production
npm run build

Check Routes

If you want to validate the route operation by POSTMAN:

GET - List All -> /api/v1
GET - Search with Sort ->  /api/v1/?sort=created
POST - Create Register -> /api/v1
PUT - Update Register -> /api/v1/:id
DELETE /api/v1/:id

Examples Request

This link was made available with the documentation, how to make the requests via POSTMAN.

License

MIT