An employee application with Spring Boot and jOOQ :)
An Employee CRUD application using Spring Boot and jOOQ :)
Kindly make sure the below softwares are installed.
Run the below commands in terminal or cmd prompt.
docker pull postgres
5432
.docker run --name postgres-instance -e POSTGRES_PASSWORD=password -e POSTGRES_USER=user -d -p 5432:5432 postgres
./bin/bash
.docker exec -it postgres-instance /bin/bash
.psql -U user
.create database employee;
.\c employee
./EmployeeJooq/src/main/resources/employee_schema.sql
.server:port
.mvn generate-sources -P local
.mvn clean install -P local
.local
is mentioned, because it will pick all the DB properties from the local properties under /EmployeeJooq/src/main/resources/application-local.properties
.Run Standalone Postgres instance using Docker
)./EmployeeJooq/src/test/java/com/app/EmployeeJooq/EmployeeJooqApplicationTest.java
.spring.profiles.active=local
..jar
generation can be done with mvn clean install -P local
.docker-compose up --build
.postgres
instance (Make sure not to have any instance running in the same port mentioned) and starts the EmployeeJooq
instance./EmployeeJooq/src/main/resources/EmployeeCRUD.postman_collection.json
and test the API’s available.