-
Build and Run with Docker Compose:
docker-compose up --build
-
Run Manually (without Docker):
uvicorn main:app --host 0.0.0.0 --port 8000 --reload
Create a .env
file in the root directory with the following environment variables:
MONGO_ATLAS_URI=your_database_url
MONGO_DB_NAME=your_database_name
Also, see .env.example
file
I created a test database stored on Mongo Atlas Cloud, to use it set the following env values:
MONGO_ATLAS_URI='mongodb+srv://saadat:[email protected]/?retryWrites=true&w=majority&appName=Schedule'
MONGO_DB_NAME='shedule'
Open API documentation can be accessed at:
http://localhost:8000/docs/