- Introduction
- Features
- Installation
- Usage
- API Documentation
- Environment Variables
- Contributing
- License
This is a backend project built with Node.js, Express.js, TypeScript, and MongoDB. It includes user authentication, blog management, and image upload functionalities.
- User authentication (signup, signin, logout)
- Blog management (create, read, update, delete)
- Image upload using Cloudinary
- API documentation with Swagger
- Clone the repository:
git clone https://github.com/yourusername/backend.git
- Navigate to the project directory:
cd backend
- Install dependencies:
npm install
- Build the project:
npm run build
- Start the server:
npm start
- For development mode:
npm run dev
The API documentation is available at /api-docs
when the server is running.
Create a .env
file in the root directory and add the following environment variables:
PORT=5000
DB_CNN=your_mongodb_connection_string
JWT_SECRET=your_jwt_secret
CLOUD_NAME=your_cloudinary_cloud_name
API_KEY=your_cloudinary_api_key
API_SECRET=your_cloudinary_api_secret
SERVER_URL=your_server_url
Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.
This project is licensed under the MIT License.