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.
- Backend Framework: Spring Boot
- Frontend Framework: React.js
- Database: MySQL
To run this project locally, you need to have the following software installed:
- JDK 17
- Node.js
- MySQL Server
- Git
- User authentication and authorization using JWT
- Product browsing and searching
- Shopping cart management
- Order placement and tracking
- Razorpay Payment integration
-
Clone the repository:
git clone https://github.com/your-username/organica.git cd organica -
Set up the database:
- Create a MySQL database and configure the connection details in
backend/src/main/resources/application.propertiesfile.
- Create a MySQL database and configure the connection details in
-
Application Properties
To configure the application properties, follow these steps:
-
Open the
backend/src/main/resources/application.propertiesfile. -
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-passwordReplace
your-usernameandyour-passwordwith your MySQL database credentials. -
(Optional) If you want to change the server port, update the following line:
server.port=8080Replace
8080with the desired port number. -
Save the
application.propertiesfile.
-
-
Backend Setup:
-
Navigate to the
Serverdirectory:cd server -
Build and run the Spring Boot application:
./mvnw spring-boot:run
The backend server should now be running on
http://localhost:8080. -
-
Frontend Setup:
-
Navigate to the
Clientdirectory:cd Client -
Install the dependencies:
npm install
-
Start the React development server:
npm start
The frontend server should now be running on
http://localhost:3000. -
-
Open your web browser and visit
http://localhost:3000to access the Organica application.
Contributions are welcome! If you want to contribute to Organica, please follow these steps:
- Fork the repository.
- Create a new branch for your feature/bug fix.
- Make your changes and commit them.
- Push your changes to your forked repository.
- Submit a pull request to the main repository.
If you have any questions or suggestions, feel free to contact the project maintainers:
- Vivek Kakadiya - [email protected]