Organica is a full-stack e-commerce project built using Spring Boot, MySQL, and React.js. It handles various operations on the server side, such as managing the shopping cart and other functionalities. For security, it utilizes JWT authentication and authorization using Spring Security.
To run this project locally, you need to have the following software installed:
Clone the repository:
git clone https://github.com/your-username/organica.git
cd organicaSet up the database:
backend/src/main/resources/application.properties file.Application Properties
To configure the application properties, follow these steps:
Open the backend/src/main/resources/application.properties file.
Configure the MySQL database connection properties by updating the following lines:
spring.datasource.url=jdbc:mysql://localhost:3306/organica
spring.datasource.username=your-username
spring.datasource.password=your-password
Replace your-username and your-password with your MySQL database credentials.
(Optional) If you want to change the server port, update the following line:
server.port=8080
Replace 8080 with the desired port number.
Save the application.properties file.
Backend Setup:
Navigate to the Server directory:
cd serverBuild and run the Spring Boot application:
./mvnw spring-boot:runThe backend server should now be running on http://localhost:8080.
Frontend Setup:
Navigate to the Client directory:
cd ClientInstall the dependencies:
npm installStart the React development server:
npm startThe frontend server should now be running on http://localhost:3000.
Open your web browser and visit http://localhost:3000 to access the Organica application.
Contributions are welcome! If you want to contribute to Organica, please follow these steps:
If you have any questions or suggestions, feel free to contact the project maintainers: