=> The Business Management Web Application is a comprehensive tool designed to help businesses manage various aspects of their operations. It provides a user-friendly interface for tasks like managing customer data, inventory, orders, and more.
- Customer Management: Easily add, update, and delete customer information.
- Inventory Management: Keep track of your inventory items, including stock levels and pricing.
- Order Management: Manage customer orders such as order creation .
- User Authentication: Secure login and authentication for admin and staff members.
- Role-Based Access Control: Define roles and permissions for different user types.
- Thymeleaf Templates: Utilizes Thymeleaf for dynamic HTML templates.
- Database Integration: Integrated with MySQL for data storage.
- Spring Boot: Backend framework for building Java-based web applications.
- Thymeleaf: Server-side Java template engine for dynamic HTML generation.
- MySQL: Relational database management system for data storage.
- IDE/Tool : Spring Tool Suite 4 (Eclipse)
Make sure you have Docker and Docker Compose installed, that the Docker daemon is running, and that port 80 is open, then execute:
docker-compose up -d
After a few minutes, when the containers are completely started, you can add a sample Admin user with this command:
docker exec my-mysql mysql -u root -proot -e "insert into businessproject.admin (admin_email, admin_name, admin_number, admin_password) VALUES ('[email protected]', 'Admin', '123', 'admin');"
Then go to the http://server_ip/home
and login with this credentials:
user: [email protected]
pass: admin
-
Clone the repository : $ git clone https://github.com/SuhasKamate/Business_Management_Project.git
-
Import the project inside STS/Eclipse :
- Open STS/Eclipse > file > import > maven > existing project > browse > finish .
- Open STS/Eclipse > file > import > maven > existing project > browse > finish .
-
Make sure you are in the Business_Management_Project directory.
4.Configure the database connection is application.properties (check the Database section for more information).
5.Run the project (by running main method is BusinessProjectApplication.java) OR right clink on the project > Run As > Spring Boot App.
6.Open http://localhost:2330/home in any browser.
7.Now your tables will be created in the databse.
- You have to add one admin data manually to login as admin, So add one admin data.
MySQL can be used as the database for this project.
The database connection can be configured in the application.properties file, with the appropriate values for the following properties:
spring.datasource.name=[Your Database Name]
spring.datasource.url=jdbc:mysql://localhost:3306/[Your Database Name]
spring.datasource.password=[Your password]
spring.datasource.username=[Your username]
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.jpa.hibernate.ddl-auto=update
server.port=2330[Optional]