This is a web application built with Spring Boot for the backend, React for the frontend, and MySQL for the database. The application helps users track their expenses, manage budgets, and analyze spending habits.
- Clone the repository:
git clone https://github.com/maharishi-university/final-project-whuan132-1.git- Navigate to the backend directory:
cd expense-tracker/backend- Update the database configuration in
src/main/resources/application.propertieswith your MySQL database credentials:
spring.datasource.url=jdbc:mysql://localhost:3306/expense_tracker_db
spring.datasource.username=your-username
spring.datasource.password=your-password- Build the Spring Boot application:
./mvnw clean package- Run the application:
java -jar target/expense-tracker.jar- Navigate to the frontend directory:
cd ../frontend- Install dependencies:
npm install- Start the React development server:
npm run start- Install MySQL and create a new database named
expense_tracker_db.
Once the backend server and frontend development server are running, you can access the Expense Tracker application in your web browser at
http://localhost:3000To deploy the application using Docker Compose:
-
Make sure Docker and Docker Compose are installed on your system.
-
Navigate to the project root directory.
-
Run the following command to build and run the Docker containers:
docker-compose up --build- Access the application in your web browser at
http://localhost:3000- Make sure all required ports (e.g., 8080 for backend, 3000 for frontend) are not in use by other applications.
- Customize the application as needed for your specific requirements.