ourPATHS
- General Setup
- [Commits] (#commits)
- Frontend Setup
- Backend Setup
- Environment Variables
- Running Tests
- Deployment
- Contributing
- License
- Clone the repository:
git clone https://github.com/your-org/your-repo.git cd your-repo - 🧰 Prerequisites Python 3.7+ installed on your system. Git installed. Bash (already available on Linux/macOS, Git Bash on Windows).
- Set Up Python Virtual Environment We use a venv/ folder in the root directory to isolate dependencies. MacOS & Linux `
python3 -m venv venv
source venv/bin/activate
Windows (PowerShell)
python -m venv venv
.\venv\Scripts\Activate.ps1
4. Install Project Dependencies Once your virtual environment is activated:
pip install -r requirements.txt
pip install pre-commit
5. Install Pre-commit Hooks
pre-commit install
`
After first setting up the repo:
pre-commit run --all-files git add . git commit -m "feat: xyz"
Subsequently:
git add . git
Pre-commits
- ✅ scripts/update_requirements.sh:
- Runs pip freeze and updates requirements.txt.
- Stages the file if there are changes.
- ✅ 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"
- Navigate to the frontend directory:
cd frontend - Install frontend dependencies:
npm install
- Start the development server:
npm start
- Navigate to the backend directory:
cd backend - Install backend dependencies:
npm install
- Start the backend server:
npm run dev
Create a .env file in both frontend and backend directories. Example:
REACT_APP_API_URL=http://localhost:5000- Frontend:
cd frontend npm test
- Backend:
cd backend npm test
Instructions for deploying the application (e.g., to Vercel, Heroku, AWS).
- Fork the repository.
- Create a new branch.
- Make your changes.
- Submit a pull request.