Frontend - https://rituraj12797.github.io/FRONTEND/ 🌐
Backend - https://dep-mocha-six.vercel.app/ 🌐
Frontend - https://github.com/rituraj12797/FRONTEND
Backend - https://github.com/Ayush-Vish/dep
- User-friendly Interface 🖥️
- User authentication 🔐
- Forget Password 📧
- CRUD Operations on Blogs ✏️
- Useful middlewares like authenticate, error, and multer 🛠️
- Implementation of utility like sendEmail 📩
- HTML 🌐
- CSS 🎨
- JavaScript 🚀
- Node.js 🚀
- Express.js 🛠️
- MongoDB 📦
- Cloudinary ☁️
- bcryptjs 🔒
- nodemailer 📧
- jsonwebtoken 🍪
- multer 📁
- mongoose 🍃
- morgan 📝
- email-validator 📧
- dotenv ⚙️
- cookie-parser 🍪
- body-parser 📦
- nodemon 🔄
git clone https://github.com/Ayush-Vish/dep.git blog_website
cd blog-website
npm i --save
touch .env
5. Open .env file and copy the content which is in the .env.example.js file . Click here
npm run dev
Route | Description |
---|---|
User Routes | |
POST /api/v1/user/register |
Register a user |
POST /api/v1/user/login |
Login a user |
GET /api/v1/user/logout |
Logout a user |
GET /api/v1/user/me |
Get user details |
POST /api/v1/user/updateUser |
Update user details |
POST /api/v1/user/forgot-password |
Send a token for resetting password |
POST /api/v1/user/reset-password/:resetPasswordToken |
Reset password |
POST /api/v1/user/authorBlogs |
Get blogs written by user |
GET /api/v1/user/getFollowers |
Get followers of a user |
Blog Routes | |
GET /api/v1/blogs/getAllBlogs |
Get all blogs |
POST /api/v1/blogs/create-blog |
Create a blog |
GET /api/v1/blogs/getblog/:id |
Get a blog by ID |
GET /api/v1/blogs/getblogByCategory/:category |
Get a blog by category |
GET /api/v1/blogs/ |
Get recent blogs |
PUT /api/v1/blogs/update-blog/:id |
Update a blog by ID |
GET /api/v1/blogs/getAllComments/:id |
Get all comments on a blog |
POST /api/v1/blogs/writeComment/:id |
Write a comment on a blog |
DELETE /api/v1/blogs/removeComment/:id/:commentId |
Remove a comment on a blog |
POST /api/v1/blogs/likeBlog/:id |
Like a blog by ID |
DELETE /api/v1/blogs/unlikeBlog/:id |
Unlike a blog by ID |
-
Ayush Vishwakarma 2022IMT-028 👨💻
-
Ritu Raj 2022IMG-057 👩💻
-
Divya Agarwal 2022IMT-036 👩💻