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.
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
To run this project, you will need to add environment variables to your .env
file
See .env.sample
Import collection from backend/tha-blog-management_API_Collection.json
if using Thunder Client VS Code extension
GET /api/all
GET /api/:id
Parameter | Type | Description |
---|---|---|
id |
string |
Required. |
PUT /api/:id
Parameter | Type | Description |
---|---|---|
id |
string |
Required. |
title |
string |
Required. |
content |
string |
Required. |
DELETE /api/:id
Parameter | Type | Description |
---|---|---|
id |
string |
Required. |
POST /api/create
Parameter | Type | Description |
---|---|---|
title |
string |
Required. |
content |
string |
Required. |