Task for Yandex School of Backend
REST API Wev-Service for price comparison. Designed with JAVA (Spring Boot) and PostgreSQL.
Service allows to work with ShopUnit entity: create, update, retrieve and get statistic.
git clone https://github.com/otto15/RaMarket.gitBefore running app create .env file following the example below.
DB_NAME=ramarket_db
DB_PASSWORD=postgres
DB_USER=postgresNow 🏃
mvn clean install
docker-compose up --buildBe sure to create database for the service and change application.properties file (put your username, password, database name instead of bold parts of the code below).
spring.datasource.url=jdbc:postgresql://localhost:5432/YOUR_DATABASE_NAME?useSSL=false&&serverTimezone=UTC spring.datasource.username=USERNAME spring.datasource.password=PASSWORD
Ready. Set. Go.
mvn spring-boot:runThe API documentation is available here.