This is the repository for all backend services for Karp, including those related to the customer facing mobile app, those related to the organization/vendor facing web app, as well as those related to the admin facing internal tool
We are using Python FastAPI
- Install
Python 3.13.3(or similar version) at the root level of your laptop - Run
python3 -m venv venv - Run
source venv/bin/activate - Run
pip install -r requirements.txt Cmd + Shift + P>Python: Select Interpreter>Enter interpreter path...>./venv/bin/python- Make an
.envfile at the root level - Set the values for the variables
MONGODB_URL(should be the connection string with <db_password> replaced by the password that Sierra will give you) andACCESS_TOKEN_EXPIRE_MINUTES(300 is fine for now) - Run
python run.py - Install Postman
- Make a new tab, and send a GET request to
http://localhost:8080and ensure that the returned result is{ "status": "ok", "message": "API is running" } - Make a MongoDB account and get Sierra to add you to the list of users by providing you an email
- Run
pre-commit install