Skip to content

caioorg/api-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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