This project consists of a FastAPI backend and a React frontend.
-
Create a Virtual Environment:
python -m venv website-monitor-app
-
Activate the Virtual Environment:
- On Windows:
.\website-monitor-app\Scripts\activate
- On Linux/Mac:
source website-monitor-app/bin/activate
- On Windows:
-
Install Python Dependencies:
pip install -r requirements.txt
-
Start the FastAPI Server:
uvicorn main:app --reload
-
Navigate to the React App Directory:
cd client-app
-
Install React Dependencies:
npm install
-
Available Scripts:
- Start Development Server:
npm start
- Build the App:
npm run build
- Run Tests:
npm run test
- Eject from Create React App:
npm run eject
- Open Cypress:
npm run cypress:open
- Run Cypress Tests:
npm run cypress:run
- Start Development Server:
To start both the backend and frontend using Docker, run: docker-compose up