Skip to content

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.

Notifications You must be signed in to change notification settings

whuan132/Expense-Tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Expense Tracker Application

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.

Setup Instructions

Backend (Spring Boot)

  1. Clone the repository:
git clone https://github.com/maharishi-university/final-project-whuan132-1.git
  1. Navigate to the backend directory:
cd expense-tracker/backend
  1. Update the database configuration in src/main/resources/application.properties with your MySQL database credentials:
spring.datasource.url=jdbc:mysql://localhost:3306/expense_tracker_db
spring.datasource.username=your-username
spring.datasource.password=your-password
  1. Build the Spring Boot application:
./mvnw clean package
  1. Run the application:
java -jar target/expense-tracker.jar

Frontend (React)

  1. Navigate to the frontend directory:
cd ../frontend
  1. Install dependencies:
npm install
  1. Start the React development server:
npm run start

Database (MySQL)

  1. Install MySQL and create a new database named expense_tracker_db.

Running the Application

Once the backend server and frontend development server are running, you can access the Expense Tracker application in your web browser at

http://localhost:3000

Deployment with Docker Compose

To deploy the application using Docker Compose:

  1. Make sure Docker and Docker Compose are installed on your system.

  2. Navigate to the project root directory.

  3. Run the following command to build and run the Docker containers:

docker-compose up --build
  1. Access the application in your web browser at
http://localhost:3000

Additional Notes

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

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •