A robust and scalable backend API for a movie management system built with Node.js, Express, and TypeScript. This API provides endpoints for movie management, user authentication, and related operations.
- User Authentication (JWT-based)
- Movie Management
- Secure Password Hashing
- Input Validation using Zod
- MongoDB Integration
- TypeScript Support
- CORS Enabled
- Environment Variable Configuration
- Node.js
- Express.js
- TypeScript
- MongoDB
- JWT Authentication
- Zod Validation
- Bcrypt
- Axios
- Node.js (v14 or higher)
- MongoDB
- npm or yarn
- Clone the repository
git clone https://github.com/yourusername/movie_backend.git
cd movie_backend- Install dependencies
npm install- Create a
.envfile in the root directory and add the following variables:
PORT=3000
MONGODB_URI=your_mongodb_connection_string
JWT_SECRET=your_jwt_secretnpm run devnpm run buildsrc/
├── config/ # Configuration files
├── controllers/ # Route controllers
├── middlewares/ # Custom middlewares
├── models/ # Database models
├── routers/ # Route definitions
├── services/ # Business logic
├── utils/ # Utility functions
├── types.d.ts # TypeScript type definitions
└── server.ts # Application entry point
PORT: Server port numberMONGODB_URI: MongoDB connection stringJWT_SECRET: Secret key for JWT token generation
[Add your API documentation here]
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the ISC License.
- Asegid Adane
- Express.js team
- MongoDB team
- TypeScript team