A web application that allows households to calculate how the latest OBR forecasts might affect their net income by 2030.
This project consists of two main components:
frontend/: A Next.js application with TypeScript and Tailwind CSSbackend/: A FastAPI Python backend
The project includes a Makefile for easy setup and running:
- Set up both backend and frontend:
make setup- Run both services concurrently:
make runAdditional Makefile commands:
make setup-backend- Create virtual environment and install backend dependenciesmake install-backend- Install backend dependencies onlymake install-frontend- Install frontend dependencies onlymake run-backend- Run only the backend servermake run-frontend- Run only the frontend servermake help- Show all available commands
- Navigate to the backend directory:
cd backend- Create a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows, use: venv\Scripts\activate- Install dependencies:
pip install -r requirements.txt- Run the server:
uvicorn main:app --reloadThe API will be available at http://localhost:8000
- Navigate to the frontend directory:
cd frontend- Install dependencies:
npm install- Run the development server:
npm run devThe application will be available at http://localhost:3000
- Input household composition (adults and children)
- Input employment income and ages
- Calculate projected 2030 household income based on OBR forecasts
- View income comparison and percentage changes
This is a simplified calculator for demonstration purposes. The calculations are based on approximate forecasts and may not reflect actual future outcomes.
This project is licensed under the MIT License.