Skip to content

ba11b0y/peerplates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Peerplates

Backend

Running the project

To run the project, you need to have Python 3.10 or higher installed.

Then create and activate the virtual environment and install the dependencies:

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Create a .env file with the following environment variables:

MONGODB_PASSWORD=<your-mongodb-password>
AZURE_OPENAI_API_KEY=<your-azure-api>
AZURE_ENDPOINT=<your-azure-endpoint>

Then source the .env file:

source .env

Then run the project:

python -m uvicorn main:app --reload --host 0.0.0.0 --port 8000

It currently contains the following endpoints:

  • GET /dishes - Get a list of dishes
  • POST /dishes - Create a new dish
  • PUT /dishes/{dish_id} - Update a dish by ID

About

Peerplates

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •