Skip to content

Latest commit

 

History

History
68 lines (45 loc) · 952 Bytes

File metadata and controls

68 lines (45 loc) · 952 Bytes

TransitOps

Backend Setup

  • Setup environment

    python3 -m venv venv
    source venv/bin/activate
  • Install dependencies

    pip3 install -r requirements.txt
  • Running the backend server

    bash run.sh
    • logs will be present in backend/app.log file
  • Run without run script

    uvicorn app:app --reload --host 0.0.0.0 --port 5678
  • Create base admin user.

    cd backend && python3 - <<'PY'
    from model.dao import seed_admin
    seed_admin()
    print('seed_admin() complete')
    PY

Frontend Setup

Run the Project

Navigate to the frontend directory:

cd TransitOps/frontend

Install dependencies (first time only):

npm install

Start the development server:

npm run dev

Open the URL shown in the terminal (usually http://localhost:4173).