vmdef / smallshopapi

Small shop API - Spring Boot
GNU General Public License v3.0
0 stars 0 forks source link

Small Shop API

Small Shop API is a REST API to manage customer data for a small shop. It will work as the backend side for a CRM interface.

Disclaimer

This is still a Work In Progress. Do not assume that the chosen approaches and their implementation are correct. This project is a first contact with Java, Spring and Spring Boot, so mistakes are around and there is room for improvement.

Features

  ./gradlew clean build  

Start the server

  java -jar build/libs/smallshop-0.0.1-SNAPSHOT.jar 

Using docker

Build an image with the following command

docker build -t myorg/smallshop .

Then we can run it by running the following command:

docker run -p 8080:8080 myorg/smallshop

Testing the application

Automated tests have not been fully implemented yet:(

Postman

Import the collection postmanCollection/SmallShopAPI.postman_collection.json. There are 3 folders:

Database

The app uses an in-memory H2 database. You can launch H2 console at http://localhost:8080/h2-console. Change the default JDBC URL to jdbc:h2:mem:smallshop