- Python FastAPI backend.
- MongoDB Database.
- Pydantic Schemas Validation
Start the dev server for local development:
cp .env.docker .env
docker-compose upTo use the application, follow the outlined steps:
Clone/Copy the code and create a virtual environment in it:
python -m venv venv
source venv/bin/activate
python -m pip install --upgrade pipInstall the modules listed in the requirements.txt file
pip install -r requirements.txt
pre-commit installCreate a .env file in the root directory of the project
cp .env.dist .envadd the following variables to .env file according to your environment needs:
MONGO_DB=elavatus_assignment_db
DATABASE_URL=<database_url>
ACCESS_TOKEN_EXPIRE_MINUTES=<seconds>
JWT_SECRET=<secret_string>
ALGORITHM=<jwt_algorithn=m>Start the application:
python main.pyThe server will start listens on port 8080 on address http://0.0.0.0:8080/docs.