-
We are using Pip and Venv to manage our dependencies and environments.
-
Clone this repo
-
Enter the directory
-
Set up the virtual environment - python -m venv calm_plan_server
-
Activate virtual environment - source calm_plan_server/bin/activate
-
Install dependencies in your virtual environment:
$(venv); pip install -r requirements.txt
-
cd into the directory, create a
.envfile with the following information:- DATABASE_URL
- e.g
DATABASE_URL=postgresql://josephlander@localhost:5432/calm_plan
- e.g
- TEST_DATABASE_URL
- e.g.
TEST_DATABASE_URL=postgresql://tomfyfe@localhost:5432/calm_plan_test
- e.g.
If you haven't created these PostgreSQL databases you will need to do so first and replace the url's above with yours
- DATABASE_URL
-
Run pytest - All tests should pass, if not you may be missing a dependency. The error messages should guild you.
-
Run
fastapi run main.pyto start the server
large-bytes/calm_plan_server
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|