Spaces:
Build error
Build error
File size: 884 Bytes
cce8120 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | # FastAPI + React E2E Verification Project
## Overview
This project demonstrates a full‑stack Todo application built with FastAPI (backend) and React (frontend). End‑to‑end tests are written using Playwright.
## Prerequisites
- Docker & Docker Compose
- Node.js (for local development without Docker)
- Python 3.11
## Running with Docker
```sh
docker compose up --build
```
- Backend API: http://localhost:8000
- Frontend: http://localhost:5173
## Running locally
### Backend
```sh
cd backend
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
uvicorn main:app --reload
```
### Frontend
```sh
cd frontend
npm install
npm run dev
```
### E2E Tests
```sh
cd frontend
npm run test:e2e
```
The tests assume the frontend is running at http://localhost:5173.
## Project Structure
```
backend/
frontend/
e2e/
docker-compose.yml
README.md
```
|