This is a Product Management System built using React.js for the frontend, Spring Boot for the backend, and MySQL for the database.
- Admin Dashboard: Allows the admin to add, update, and delete products.
- User Authentication: Provides user authentication through registration and login functionality.
- Responsive UI: The frontend is designed to be responsive, ensuring a seamless experience across devices.
- Frontend: React.js
- Backend: Spring Boot
- Database: MySQL
-
Clone the repository:
-
Backend Setup:
-
Navigate to the
backend
directory: -
Install dependencies:
-
Run the Spring Boot application:
- Database Setup:
- Create a MySQL database named
product_management_system
. - Configure the database connection settings in
backend/src/main/resources/application.properties
.
- Frontend Setup:
-
Navigate to the
frontend
directory: -
Install dependencies:
-
Run the React application:
- Accessing the Application:
- Once the backend and frontend servers are running, you can access the application at
http://localhost:3000
in your web browser.
- As an admin, you can log in to the admin dashboard using your credentials.
- From the dashboard, you can manage products by adding, updating, and deleting them.
- Make sure to log out after you finish your session.
- GET /products: Get all products.
- GET /products/{id}: Get a specific product by ID.
- POST /products: Add a new product.
- PUT /products/{id}: Update an existing product.
- DELETE /products/{id}: Delete a product.
Contributions are welcome! Please fork the repository and submit a pull request.
This project is licensed under the MIT License.