Name of this project is Notify me.
The objective of this project is to create a blog app where user can Read the blogs , Create blogs, comment on blog they like
- Read blogs without login
- Register on website / Signup
- Login to account
- See account details
- Upload profile picture
- Update profile
- Create blog
- Upload image for blog
- Update blog
- Delete blog
- Give comment on the blog
- Users can't make changes to others' post
- User cannot create post without loging in
- Light/dark mode toggle
- html 5
- css 3
- javascript
- react
- redux
- react-router-dom
- react-icons
- react-redux
- redux-thunk
- chakra-ui
- bcrypt
- cloudinary
- cors
- dotenv
- express
- jsonwebtoken
- mongoose
- multer
- nodemon
Install my-project by cloning the repository
cd backend
npm Install
cd frontend
npm Install
To run this project, you will need to add the following environment variables to your .env file
-
DB_URL
your mongoDb ATLAS url -
PRIVATE_KEY
to hash the password -
CLOUD_NAME
provided by Cloudinary -
API_KAY
provided by Cloudinary -
API_SECRET
provided by Cloudinary
GET /blog
Parameter | Type | Description |
---|---|---|
NA |
NA |
No API_KEY Required |
GET /blog/${blog_id}
Parameter | Type | Description |
---|---|---|
blog_id |
ObjectId |
Required. Id of item to fetch |
POST /blog
Parameter | Type | Description |
---|---|---|
user_id |
ObjectId |
Required. to create post |
title |
string |
Required. to create post |
blog |
string |
Required. Description to create post |
image_blog |
file |
Required. to create post |
PATCH /blog/update/${blog_id}
Parameter | Type | Description |
---|---|---|
blog_id |
ObjectId |
Required. Id of item update |
payload |
stringified object |
Required. object to update |
DELETE /blog/delete/${blog_id}
Parameter | Type | Description |
---|---|---|
blog_id |
ObjectId |
Required. Id of item to fetch |
GET /comment/${blog_id}
Parameter | Type | Description |
---|---|---|
blog_id |
ObjectId |
Required. Id of item to all comments |
POST /comment
Parameter | Type | Description |
---|---|---|
user_id |
ObjectId |
Required. to create comment |
comment |
string |
Required. to create comment |
blog_id |
ObjectId |
Required. to create comment |
Clone the project
git clone https://github.com/Praful-87/blog-app-mern.git
Go to the project directory
cd backend
cd frontend
Install dependencies
npm install
Start the server
npm run server
Start the developement server ( localhost )
npm run start
To deploy this project
Go to the frontend directory
cd frontend
npm run build
deploy the build folder on netlify