Skip to content

Saonoke/TomaCare-Backend

Repository files navigation

TomaCare - Backend

Installation

  • Create virtual environment using python.

    python -m venv .venv

    Activate the virtual environment:

    • Windows:
      .venv\Scripts\activate
    • Linux:
      source .venv/bin/activate
  • 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 .env file with this template. Change USER, PASS, and HOST

    DATABASE_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
    

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors