This application was generated using Spring Initializer, you can find documentation and help at SpringBoot Docs.
This is a "microservice" application intended to be part of a microservice architecture, please refer to the Doing microservices with SpringBoot page of the documentation for more information.
This microservice (my-retail) is configured to run on port 8500. This can be reconfigured in the application.properties file.
This microservice (my-retail) uses embedded mongodb as backend database which is not persistent. As you stop your application all the data you write to it will be lost. This is purely for development purposes only. If you want to use your local mongo db instance, just update the scope of embedded-mongo to test so that embedded mongo will only be used during test phase.
For development purposes, sample data is being inserted into embedded mongo from the repository layer after @PostConstruct of the bean.
For more details on API endpoints and usage, please refer to swagger UI after starting the application at Swagger UI.
To start your application in the default profile, run:
./mvnw
For further instructions on how to develop with Spring Boot, have a look at Using SpringBoot in development.
To build the final jar and optimize the my-retail application for production, run:
./mvnw -Pprod clean verify
To ensure everything worked, run:
java -jar target/*.jar
To launch your application's tests, run:
./mvnw verify
To install your application in your local environment, run:
./mvnw install
For more information, please contact [email protected].