This guide will help you set up the backend environment for the project.
Before proceeding, make sure you have the following installed on your system:
- Download: https://code.visualstudio.com/
- Download: https://cmake.org/download/
Fill in the following keys in your environment (e.g., .env file or environment variables manager of your OS):
DB_USER=<your_db_username>
DB_PASSWORD=<your_db_password>
DB_HOST=<your_db_host>
DB_PORT=<your_db_port>
DB_NAME=<your_db_name>AWS_ACCESS_KEY_ID=<your_aws_access_key>
AWS_SECRET_ACCESS_KEY=<your_aws_secret_key>
AWS_REGION=<your_aws_region>
S3_BUCKET_NAME=<your_s3_bucket_name>RECAPTCHA_SECRET_KEY=<your_secret_key>Make sure you have Python and pip installed.
Then install dependencies from requirements.txt:
pip install -r requirements.txtAfter setting up everything, run the following command to start the FastAPI endpoint:
uvicorn app.main:app --reload - FastAPI Docs: https://fastapi.tiangolo.com/
- MySQL Docs: https://dev.mysql.com/doc/
- AWS S3 Docs: https://docs.aws.amazon.com/s3/index.html