Table of Contents
Development of CRUD REST API for working with
Events
.The application must be accompanied by a README.md file with instructions for project startup.
Database | |
---|---|
Backend |
Using pure Hibernate (Spring Data JPA wrapper not allowed)
Integration or unit tests.
Database migration (Liquibase or Flyway).
Ability to run from docker-compose.
Ability to filter and sort
Events
.Using environment variables.
API already deployed on PAAS Heroku:
- Clone the repository
git clone https://github.com/IvanHayel/modsen-crud-api.git
- Use docker-compose
docker-compose up
Java version 17+ is required.
- Clone the repository
git clone https://github.com/IvanHayel/modsen-crud-api.git
- Create Postgres Database
Example:
CREATE DATABASE "modsen-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 bootRun
You can also use the gradle wrapper:
./gradlew
Insomnia used for demonstration.