Skip to content

parthvyas7/tha-blog-management

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Blog post management with MERN stack

Simple blog post management system using the MERN stack. The application should allow users to perform basic CRUD operations (Create, Read, Update, Delete) on blog posts.

This is Take-home assignment for MERN stack developer role.

Demo

Visit

Screenshots

App Screenshot

Run Locally

Clone project on your machine

Setup frontend

cd tha-blog-management/frontend
npm install

Start the client

npm run dev

Setup backend

cd tha-blog-management/backend
npm install

Start the server

npm run dev

Visit client URI on browser

Environment Variables

To run this project, you will need to add environment variables to your .env file

See .env.sample

API Reference

Import collection from backend/tha-blog-management_API_Collection.json if using Thunder Client VS Code extension

Get all Posts

  GET /api/all

Get Post by ID

  GET /api/:id
Parameter Type Description
id string Required.

Update Post by ID

  PUT /api/:id
Parameter Type Description
id string Required.
title string Required.
content string Required.

Delete Post by ID

  DELETE /api/:id
Parameter Type Description
id string Required.

Create Post

  POST /api/create
Parameter Type Description
title string Required.
content string Required.

License

MIT

Releases

No releases published

Packages

No packages published