Table of Contents
| Database | |
|---|---|
| Backend | |
| Build Tool | |
| PaaS |
API already deployed on PaaS Heroku:
https://clevertec-test-task.herokuapp.com
- Clone the repository
git clone https://github.com/IvanHayel/clevertec-test-task.git- Use docker-compose
docker-compose upJava version 17+ is required.
- Clone the repository
git clone https://github.com/IvanHayel/clevertec-test-task.git- Create Postgres Database
Example:
CREATE DATABASE "clevertec-api"
WITH
OWNER = postgres
ENCODING = 'UTF8'
LC_COLLATE = 'English_World.1252'
LC_CTYPE = 'English_World.1252'
TABLESPACE = pg_default
CONNECTION LIMIT = -1;- Set up environment variables
DB_URL - JDBC url for Postgres database.
DB_USERNAME - database username
DB_PASSWORD - database password
- Run Gradle
gradle clean build bootRunYou can also use the gradle wrapper:
./gradlew
Insomnia used for demonstration.























