-
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
.env
file 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.py
to start the server
-
Notifications
You must be signed in to change notification settings - Fork 0
TECH: PYTHON | FastAPI | SQLalchemy | PostgreSQL | PYTEST Calm Plan is a task manager app designed with people with ADHD in mind.
large-bytes/calm_plan_server
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
TECH: PYTHON | FastAPI | SQLalchemy | PostgreSQL | PYTEST Calm Plan is a task manager app designed with people with ADHD in mind.