Skip to content

CSC392-CSC492-Building-AI-ML-systems/HealthAssessmentDashboard

Repository files navigation

Project Name

ourPATHS


Table of Contents


General Setup

  1. Clone the repository:
    git clone https://github.com/your-org/your-repo.git
    cd your-repo
  2. 🧰 Prerequisites Python 3.7+ installed on your system. Git installed. Bash (already available on Linux/macOS, Git Bash on Windows).
  3. Set Up Python Virtual Environment We use a venv/ folder in the root directory to isolate dependencies. MacOS & Linux `

Create the virtual environment

python3 -m venv venv

Activate it

source venv/bin/activate Windows (PowerShell)

Create the virtual environment

python -m venv venv

Activate it

.\venv\Scripts\Activate.ps1 4. Install Project Dependencies Once your virtual environment is activated:

Install from requirements.txt (if exists)

pip install -r requirements.txt

Install pre-commit

pip install pre-commit 5. Install Pre-commit Hooks pre-commit install `


Commits

After first setting up the repo: pre-commit run --all-files git add . git commit -m "feat: xyz"

Subsequently: git add . git

Pre-commits

  1. ✅ scripts/update_requirements.sh:
  • Runs pip freeze and updates requirements.txt.
  • Stages the file if there are changes.
  1. ✅ black:
  • Formats all Python code inside src/ using Black.
  • If formatting is needed, the commit is blocked until you git add the changes and re-commit.

If Pre-commit fails then retry: git add . git commit -m "feat: xyz"


Frontend Setup

  1. Navigate to the frontend directory:
    cd frontend
  2. Install frontend dependencies:
    npm install
  3. Start the development server:
    npm start

Backend Setup

  1. Navigate to the backend directory:
    cd backend
  2. Install backend dependencies:
    npm install
  3. Start the backend server:
    npm run dev

Environment Variables

Create a .env file in both frontend and backend directories. Example:

REACT_APP_API_URL=http://localhost:5000

Running Tests

  • Frontend:
    cd frontend
    npm test
  • Backend:
    cd backend
    npm test

Deployment

Instructions for deploying the application (e.g., to Vercel, Heroku, AWS).


Contributing

  1. Fork the repository.
  2. Create a new branch.
  3. Make your changes.
  4. Submit a pull request.

License

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5