MERN Blog is full stack MERN (MongoDB) stack blog website where user can create their account, login and write their post on website with their comprehensive content and edit any time when required. It uses JWT for authetication, MongoDB for user data storage, React-Router-DOM for creating routes.
- Application Home page
- Content Page
- Edit Page
Client
Server
Database
- JWT Authentication
- Creat Post Functionality
- Edit Post Feature
Color | Hex |
---|---|
Primary Color | #040810 |
Secondary Color | #393E46 |
Accent Color | #00ADB5 |
Text Color | #EEEEEE |
To run this project, you will need to add the following environment variables to your .env file
JWT_SECRET
MONGODB_URI
Install the project with npm Create a api folder
npm init
then run:
npm install --save
Install other dependencies from api/package.json.
Install the project with npm Create a client folder
npx create-react-app my-project
Install other dependencies from client/package.json.
-
Install React-Router-DOM using
npm install react-router-dom
. -
Create account on Atlas website, create a project and from the connect option copy the Nodejs URI and use it.
Create a folder Clone the api project
https://github.com/Priyanshu88/MERN-Blog/api
then clone the client project
https://github.com/Priyanshu88/MERN-Blog/client/
Go to
https://github.com/Priyanshu88/MERN-Blog/api/
run
npm install
and type node index.js
then go to
https://github.com/Priyanshu88/MERN-Blog/client
run
npm install
and type npm run start
This project uses react-quill
to edit the post.
Contributions are always welcome!
Priyanshu Pandey - @twitter_handle - 2040020@sliet.ac.in
Project Link: