Skip to content

ialtafshaikh/blog-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blog Backend

A Blog backend built using express server, mongoDB atlas is used to store the data

Getting Started

Downloading and Running this Project Locally

  1. clone the repository
git clone https://github.com/ialtafshaikh/blog-backend.git
  1. add a .env file inside the root folder
DATABASE_URL=local_moongodb
PORT=3000

Supported Routes

/blogs : (method:get) - to get all blogs 
/blogs : (method:post) - to post blog
/blogs?author&random - query this endpoint to get all the property based blogs
/blogs/id : (method:get) - to get a single blog of using _id (mongoose id)

Steps to Host on Heroku

refer this gist

Author

altaf shaikh

License

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

Releases

No releases published

Packages

No packages published