Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 1.03 KB

File metadata and controls

42 lines (27 loc) · 1.03 KB

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