This document provides instructions on how to build and run the application.
Before proceeding, ensure that you have the following installed on your system:
- Java Development Kit (JDK) 17
- Apache Maven (https://maven.apache.org/download.cgi)
- Git (for cloning the project from a repository)
Follow these steps to build the Spring Boot application using Maven:
- Clone the project from the repository: git clone <repository_url>
- Navigate to the project directory.
- Execute the Maven build command: mvn clean install
- This command compiles the source code, runs the tests, and packages the application into a JAR file.
Once the application is built, you can run it using the following steps:
- Navigate to the target directory.
- Run the JAR file using the
java
command: java -jar ecommerce-0.0.1-SNAPSHOT.jar - Once the application starts, you should see log messages indicating that the application is running. By default, the application will start on port 8080. You can use the url http://localhost:8080 to access the REST endpoints. If not, you can interact with the program usoing the CLI.
You can interact with the application through the command line or through the REST API endpoints.
You can find the detailed instructions to use the rest api endpoints below. (Prerequisites: Postman App or Postman Web) View Postman collection here-