Skip to content

MoviesAPI is a RESTful API that allows users to manage a collection of movie data, including details like titles, genres, and ratings. Built using Node.js, Express, and MongoDB, it provides a simple yet robust interface for performing CRUD operations. Additionally, the API integrates OpenAI for enhanced functionality.

Notifications You must be signed in to change notification settings

DikshitaDas/MoviesAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎬 Movies API

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. 🍿

Movies API Node.js Express MongoDB

🚀 Features

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

📦 Installation

1. Clone the Repository

git clone https://github.com/DikshitaDas/MoviesAPI.git
cd MoviesAPI

2. Install Dependencies

npm install

3. Configure Environment Variables

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

4. Run the Server

npm start

The API will be available at http://localhost:5000.

CRUD Images Demo

📖 API Endpoints

🔍 Fetch All Movies

GET /api/movies

➕ Add a New Movie

POST /api/movies

🛠️ Update a Movie

PATCH /api/movies/:id

❌ Delete a Movie

DELETE /api/movies/:id

🔑 Use OpenAI API for Additional Functionality

POST /api/openai/functionality

Check out the full API Documentation for all endpoints and usage examples.

🛠 Technologies Used

Technology Version
Node.js Node.js
Express.js Express
MongoDB MongoDB
OpenAI API OpenAI

🤝 Contributing

Contributions are more than welcome! Please follow these steps:

  1. Fork the repository 🍴
  2. Create your feature branch (git checkout -b feature/amazing-feature) 🚧
  3. Commit your changes (git commit -m 'Add a new feature') 📝
  4. Push to the branch (git push origin feature/amazing-feature) 📤
  5. Open a pull request 📬

📄 License

This project is licensed under the MIT License. See the LICENSE file for more details. 📃

About

MoviesAPI is a RESTful API that allows users to manage a collection of movie data, including details like titles, genres, and ratings. Built using Node.js, Express, and MongoDB, it provides a simple yet robust interface for performing CRUD operations. Additionally, the API integrates OpenAI for enhanced functionality.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published