This is a full CRUD (Create, Read, Update, Delete) application for managing movies and obtaining movie recommendations. The application uses Node.js, MongoDB, Mongoose ODM, and integrates with OpenAI's ChatGPT for movie recommendations.
- Create, Read, Update, and Delete movies.
- Get movie recommendations using OpenAI's ChatGPT.
- RESTful API for easy integration.
- Node.js
- MongoDB
- Mongoose ODM
- OpenAI (ChatGPT)
-
Fork then Clone the repository:
-
Install dependencies:
npm install
-
Configure MongoDB:
- Ensure MongoDB is installed on your machine.
- Update the MongoDB connection string `.
-
Set up OpenAI API Key:
- Get your OpenAI API key.
- Update the API key .
Start the server:
npm start
Visit http://localhost:3000
in your browser to access the application.
- GET /movies: Get all movies.
- GET /movies/:id: Get a specific movie.
- POST /movies: Create a new movie.
- PATCH /movies/:id: Update a movie.
- DELETE /movies/:id: Delete a movie.
The application integrates with OpenAI's ChatGPT for movie recommendations. Ensure your OpenAI API key is set up
This project is licensed under the MIT License - see the LICENSE file for details.