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.properties
file.
- 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.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
andyour-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 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
Client
directory: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:3000
to 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 - vivek.kakadiya111@gmail.com