Skip to content

zhenyuan0502/ghcp-demo-insurance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ghcp-demo-insurance

CI/CD Tests and Coverage codecov

This project is a demo insurance application with a frontend and backend, designed for educational and demonstration purposes.

Test Coverage

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

Project Structure

  • backend/ - Python Flask backend
  • backend-nodejs/ - Node.js backend (Express)
  • backend-py/ - Alternative Python backend
  • frontend/ - React frontend (TypeScript, Vite)
  • database-postgres/ - PostgreSQL database setup and scripts

Getting Started

Prerequisites

  • 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)

Setup

1. Install Dependencies

  • Frontend:
    cd frontend
    npm install
  • Backend (Python):
    cd backend
    pip install -r requirements.txt
  • Backend (Node.js):
    cd backend-nodejs
    npm install

2. Running the App

  • Frontend:
    npm start
  • Backend (Python):
    python app.py
  • Backend (Node.js):
    node app.js

3. Docker Compose

  • To run the full stack with Docker Compose:
    docker-compose up
    See the various docker-compose.*.yml files for different configurations.

Testing

  • Frontend:
    npm test
  • Backend (Python):
    pytest
  • Backend (Node.js):
    npm test

Additional Scripts

  • See run_test.sh, run_test.ps1, and other scripts for automation.

License

This project is for demo purposes only.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •