This is the backend code for a simple blogging website built using Node.js.
This project is a backend implementation for a basic blogging website. It provides the necessary API endpoints to handle blog posts, comments, and user authentication.
- User authentication (Sign up, Log in)
- CRUD operations for blog posts
- Commenting on blog posts
-
Clone the repository:
git clone https://github.com/tariqrasheed172001/Blog_Backend.git
-
cd your-repo
-
npm install
-
PORT=3000
-
MONGODB_URI=your_mongodb_connection_string
-
JWT_SECRET=your_jwt_secret
npm start
After the installation, the server will be running at http://localhost:3000 by default.