A full-stack personal finance application.
- Docker: For running the PostgreSQL database.
- Python 3.10+: For the backend API.
- Node.js 16+: For the frontend application.
We use Docker to run a local instance of PostgreSQL.
Run the following command in the root directory:
docker-compose up -dThis starts a PostgreSQL container on Port 5433.
- Host:
localhost - Port:
5433 - User:
postgres - Password:
postgres - Database:
accountantapp
To access the database shell inside the container:
docker exec -it public_bc-db-1 psql -U postgres -d accountantappTo create the database tables:
export PYTHONPATH=$PYTHONPATH:$(pwd)/backend
python backend/init_db.pyThe backend is built with Flask
Navigate to the backend directory and install dependencies:
cd backend
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txtStart the development server:
sh backend/run.shThe API will be available at http://localhost:8000.
The frontend is built with React and Vite.
Navigate to the frontend directory and install dependencies:
cd frontend
npm installStart the development server:
npm run devThe application will be available at http://localhost:5173.