-
Create virtual environment using python.
python -m venv .venv
Activate the virtual environment:
- Windows:
.venv\Scripts\activate
- Linux:
source .venv/bin/activate
- Windows:
-
Install all required Python packages.
pip install -r requirements.txt
-
Set Up the Database.
- Ensure MySQL is running.
- Create a database named
tomacare.CREATE DATABASE tomacare;
-
Create
.envfile with this template. ChangeUSER,PASS, andHOSTDATABASE_URL=mysql+pymysql://USER:PASS@HOST/tomacare
-
Run database migration.
alembic downgrade -1 alembic revision --autogenerate alembic upgrade head
Run seeder
python -m database.seeder.seeder --seed
Saonoke/TomaCare-Backend
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|