This project aims to integrate GPT with Express.js, allowing GPT to manage all API responses and connect directly to a MongoDB database. The goal is to explore the capabilities of GPT tools in a practical application.
- Node.js: JavaScript runtime for building server-side applications.
- Express.js: Web framework for Node.js to handle routing and middleware.
- MongoDB: NoSQL database for storing application data.
- Mongoose: ODM library for MongoDB and Node.js.
- Docker: Containerization platform to create, deploy, and run applications.
- GPT interprets incoming request body and headers.
- Utilizes a predefined set of tools to generate appropriate responses.
- Manages the entire API lifecycle, from request handling to database interactions.
-
Clone the repository:
git clone git@github.com:thadeucbr/apigpt.git
-
Navigate to the project directory:
cd apigpt
-
Install dependencies:
npm install
-
Set up MongoDB (if not using Docker):
- Ensure MongoDB is running locally or configure the connection string for a remote database.
-
To run the application using Docker:
docker-compose up
- Send requests to the API endpoint, and GPT will interpret the body and headers to provide a response.
- Customize the tools available to GPT for enhanced response generation.
Contributions are welcome! Please open an issue or submit a pull request for any enhancements or bug fixes.
This project is licensed under the MIT License - see the LICENSE file for details.
- Special thanks to the creators of GPT and the libraries used in this project.