Skip to content

A simple Node Js blog Api boilerplate using Mongoose, fastify and boom js.

Notifications You must be signed in to change notification settings

sargbah84/simple-node-rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple NodeJs Blog API Boilerplate

A sample node js rest api for crud api for adding adding blog post and associating it with a user and adding multiple comments. The API uses NodeJs, MongoDB and Fastily

Steps to Getting Up

Note
This project requires MongoDB installed and running on your machine or you can sign up for a cloud mongodb online.
This sample rest api project should be easily cloned, installed all node packages and running in no time.

//on local
git clone https://github.com/sargbah84/sample-node-rest-api
cd sample-node-api
npm install
npm start

These are all of the routes defined in this project:

http://localhost:8880//api/users http://localhost:8880//api/user/:id http://localhost:8880//api/user http://localhost:8880//api/user/:id http://localhost:8880//api/user/:id http://localhost:8880//api/posts http://localhost:8880//api/post/:id http://localhost:8880//api/post http://localhost:8880//api/post/:id http://localhost:8880//api/post/:id http://localhost:8880//api/comments http://localhost:8880//api/comment/:id http://localhost:8880//api/comment http://localhost:8880//api/comment/:id http://localhost:8880//api/comment/:id

About

A simple Node Js blog Api boilerplate using Mongoose, fastify and boom js.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published