- Install the dependencies:
Make sure you have Python 3.11 installed on your machine. Then, run the following command in an environment with Python 3.11:
pip install -r requirements.txt
- Run the API:
fastapi dev app
To run in production mode, run
fastapi run app
The following environment variables need to be added into the .env
file to run the API:
USERS_TABLE_ID
: Airtable users table IDJWT_KEY
: Secret used to sign JWT tokensFRONT_END_BASE_URL
: Base URL of the frontend appVERIFICATION_EMAIL_WEBHOOK_URL
: Webhook URL for sending verification emails in Airtable automationSCHEDULES_TABLE_ID
: Airtable schedules table IDWORKSPACE_ID
: Airtable workspace IDAIRTABLE_API_KEY
: Airtable API key
Here's an example .env
file:
USERS_TABLE_ID=your_airtable_users_table_id
JWT_KEY=your_jwt_key
FRONT_END_BASE_URL=http://localhost:3000
VERIFICATION_EMAIL_WEBHOOK_URL=https://email-verification-webhook.com
SCHEDULES_TABLE_ID=your_airtable_schedules_table_id
WORKSPACE_ID=your_airtable_workspace_id
AIRTABLE_API_KEY=your_airtable_api_key
Simply run
pytest --cov-report html:cov_html
Then open cov_html/index.html
in your browser to see the code report.