Install git, maven, java(>=8) and mysql-server and postman
.
- Clone the project by running
git clone [email protected]:pramodpatil812/inventory.git <dir>
. - Change mysql credentials into resources/application.properties file.
- Import database dump present at /dump/sayurbox.sql.
- Install the dependencies by running
mvn clean install
. - Run spring boot application by running
mvn spring-boot:run
- Import the postman collection present in /dump/ folder and test the api's.
mvn spring-boot:run
mvn test
For simplicity each request is passed user id in the header. For production based system signed jwt token will be useful in user validation.