Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

Azure OpenAI One-day Hack Sample Application (Python)

Running the application

Backend application is Python FastAPI app which is served using uvicorn.

cd api
python -m venv venv # optional but best practice
pip install -r requirements.txt
uvicorn main:app --reload

Rebuilding frontend

In case you need to change something in the React app, make sure to rebuild it before testing through backend application. Build process is configured in such a way that it will automaticly copy the new files from build folder to the public folder of the API so that they can be served by the backend web server.

cd frontend
npm run build