This is a full working blogging solution built using the MERN stack.
Here are some features of this blog
- You have the ability to register and login
- You have the ability to create a blog post
- You have the ability to view all posts.
- You have the ability to submit a comment
- You have the ability to manage comments under your post
- You can see related posts
This project comes with 2 folders.
-
Frontend
The frontend is built with REACTJS
-
Backend
The backend is built with NODEJS, EXPRESS & MONGODB
Navigate to the /frontend/
folder and create an .env
file.
In this file, modify the parameter below to reflect the development URL of your backend server
VITE_BACKEND_URL = http://localhost:5000
Navigate to the /backend/
folder and create an .env
file.
In this file, modify the parameters below
CLOUDINARY_URL = YOUR_CLOUDINARY_URL
DB_URL = YOUR_MONGODB_URL
Now you have to fireup the frontend server with this command
$ cd frontend
$ npm run dev
Then fireup the backend server with this command
$ cd backend
$ node index.js