Simple stock management system with SQLite3 database, FastAPI backend, and React frontend.
cd backend
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python init_db.py
python -m uvicorn main:app --reloadcd frontend
npm install
npm startcd frontend
npx playwright install chromium
npx playwright test- Backend: FastAPI REST API with SQLite3 database
- Frontend: React app with StockCard component
- Database: Pre-seeded with 3 stocks (Apple, Microsoft, NVIDIA)
- Tests: 8 E2E tests covering full user journey
GET /stocks- Get all stocksGET /stocks/{id}- Get single stockPOST /stocks- Create new stockPUT /stocks/{id}- Update stockDELETE /stocks/{id}- Delete stock
- Backend: Python 3.13, FastAPI, SQLite3, Uvicorn
- Frontend: React 18, TypeScript, Custom hooks, CSS Grid
- Testing: Playwright E2E tests
- Database: SQLite3 with real stock data