This project is a demo insurance application with a frontend and backend, designed for educational and demonstration purposes.
The project includes comprehensive test suites for all three services:
- Backend Python: 89% statement coverage with 14 test cases
- Backend Node.js: 70% statement coverage with 20 test cases
- Frontend React: 100% coverage for tested components with 27 test cases
backend/
- Python Flask backendbackend-nodejs/
- Node.js backend (Express)backend-py/
- Alternative Python backendfrontend/
- React frontend (TypeScript, Vite)database-postgres/
- PostgreSQL database setup and scripts
- Node.js (for frontend and Node.js backend)
- Python 3 (for Python backend)
- npm (for frontend and Node.js backend)
- Docker (optional, for containerized setup)
- Frontend:
cd frontend npm install
- Backend (Python):
cd backend pip install -r requirements.txt
- Backend (Node.js):
cd backend-nodejs npm install
- Frontend:
npm start
- Backend (Python):
python app.py
- Backend (Node.js):
node app.js
- To run the full stack with Docker Compose:
See the various
docker-compose up
docker-compose.*.yml
files for different configurations.
- Frontend:
npm test
- Backend (Python):
pytest
- Backend (Node.js):
npm test
- See
run_test.sh
,run_test.ps1
, and other scripts for automation.
This project is for demo purposes only.