Skip to content

kevin-fruitful/chadgpt-backend

Repository files navigation

ChadGPT Backend

WARNING THIS REPO HAS TONS OF ISSUES AND IS NOT SAFE TO USE FOR PRODUCTION

Backend for ChadGPT - ETH Tokyo Hackathon

This project is the backend for ChadGPT, which was created during the ETH Tokyo Hackathon in 36 hours. The backend is designed to support the ChadGPT application, an innovative solution for using AI to help with coding and finding bugs, with a focus on smart contracts.

ETH Global ChadGPT showcase

Thank you to Filecoin FVM for awarding us with a prize!

Getting Started

These instructions will help you set up the project on your local machine for development and testing purposes. See the deployment section for notes on how to deploy the project on a live system.

Prerequisites

To run the backend, you will need:

  • Python >=3.9
  • Docker (optional)

Installing

Clone the repository:

git clone https://github.com/kevin-fruitful/chadgpt-backend.git

Create and activate a virtual environment:

python -m venv venv
source venv/bin/activate  # On macOS/Linux
venv\Scripts\activate  # On Windows

Install the required packages:

pip install -r requirements.txt

Set up the environment variables:

OPENAI_API_KEY=

Run the backend locally:

flask run --port 8000

or

python app.py

Your backend should now be running at http://localhost:8000.

Deployment

To deploy the backend, containerize it using Docker and deploy it on your preferred cloud provider or VPS. See the Docker documentation and the specific cloud provider's documentation for more details on how to deploy the Docker container.

Built With

ETH Tokyo ChadGPT Team

Kevin Park @kevin-fruitful Ariel Chen @Arielpopcorn Caitlin Zhang @caitlinthebest Tesa Ho @tesaho Tim Cox @timncox

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Acknowledgments

  • The ETH Tokyo Hackathon organizers and sponsors for providing the opportunity to build this project.
  • The amazing mentors and fellow participants at ETH Tokyo for their support and collaboration. -- Special shoutout to Jeff Lau @jefflau
  • Everyone who has contributed to the open-source tools and libraries used in this project.

Notes

After installing dependencies, add them to requirements.txt

pip freeze > requirements.txt