Welcome to the MoviesAPI project! This API provides a collection of movie data, including titles, genres, ratings, and more! 📽️ Built with Node.js, Express, and MongoDB. 🍿
✨ RESTful API for movie data management
🎞 CRUD operations to Create, Read, Update, and Delete movie records
🔍 Search movies by title, genre, or year
📈 Sorting and pagination for efficient data retrieval
🔑 Uses OpenAI API Key for advanced functionality
git clone https://github.com/DikshitaDas/MoviesAPI.git
cd MoviesAPI
npm install
Create a .env
file in the root directory and add the following:
MONGO_URI=mongodb://localhost:27017/moviesDB
PORT=5000
OPENAI_API_KEY=your_openai_api_key
npm start
The API will be available at http://localhost:5000
.
GET /api/movies
POST /api/movies
PATCH /api/movies/:id
DELETE /api/movies/:id
POST /api/openai/functionality
Check out the full API Documentation for all endpoints and usage examples.
Technology | Version |
---|---|
Node.js | |
Express.js | |
MongoDB | |
OpenAI API |
Contributions are more than welcome! Please follow these steps:
- Fork the repository 🍴
- Create your feature branch (
git checkout -b feature/amazing-feature
) 🚧 - Commit your changes (
git commit -m 'Add a new feature'
) 📝 - Push to the branch (
git push origin feature/amazing-feature
) 📤 - Open a pull request 📬
This project is licensed under the MIT License. See the LICENSE file for more details. 📃