This repo contains a backend API for the BioChatter MeTTa chat web application.
Supported OS: Linux & Mac
Follow these steps to run the API:
- Install required dependencies (preferably in a virtual environment):
pip install -r requirements.txt
- Add your OpenAI API Key to env:
export OPENAI_API_KEY=*****
- Create the database migrations:
python manage.py makemigrations
- Run the migrations:
python manage.py migrate
- Run the API in a dev server:
python manage.py runserver
You can view the available routes in the urls.py module. You can test the api using the URL below:
http://127.0.0.1:8000/api/<route>