This repository contains the backend code for our blog website. It provides essential server-side functionality to support the blogging platform.
- Node.js
- Express
- MongoDB
- JSON Web Tokens (JWT)
- bcrypt
- Multer
- dotenv
- CORS
- User authentication using JWT tokens
- Secure password hashing with bcrypt
- File uploads for blog images and media using Multer
- Flexible data storage and retrieval with MongoDB
- Environment variable management with dotenv
- Cross-origin resource sharing (CORS) for enabling communication with the frontend
- Clone this repository to your local machine.
- Install dependencies using
npm install
. - Create a
.env
file in the root directory and add the following environment variables:JWT_SECRET=your_jwt_secret MONGODB_URL=your_mongodb_url
- Start the server using
npm start
.
Contributions are welcome! Feel free to open issues or submit pull requests to improve the functionality or documentation of this backend.