<<<<<<< HEAD
=======
A full-stack budget tracking application built with Rust (Actix-web) and React.
backend/: Rust backend using Actix-web and PostgreSQLfrontend/: React frontend with TypeScript
- Rust and Cargo
- Node.js and npm
- PostgreSQL
- Docker (optional)
-
Navigate to the backend directory:
cd backend -
Create a
.envfile:DATABASE_URL=postgres://postgres:postgres@localhost:5432/budget_app RUST_LOG=debug RUST_BACKTRACE=1 -
Create the database:
createdb budget_app
-
Run migrations:
cargo sqlx database create cargo sqlx migrate run
-
Start the backend:
cargo run
The backend will run on http://localhost:8000
-
Navigate to the frontend directory:
cd frontend -
Install dependencies:
npm install
-
Start the development server:
npm start
The frontend will run on http://localhost:3000
GET /api/transactions: Get all transactionsPOST /api/transactions: Create a new transactionDELETE /api/transactions/{id}: Delete a transaction
- The backend uses SQLx for database operations
- Run
cargo sqlx prepareto prepare SQL queries for offline mode - Use
cargo testto run tests
- Built with React and TypeScript
- Uses modern React features and hooks
- Styled with CSS modules
MIT
0479bcc (Initial commit: add backend and frontend)