A simple Spring playground project. You can find the frontend counter part here: Book Shelf UI.
DROP TABLE IF EXISTS book CASCADE;
CREATE TABLE book (
id SERIAL PRIMARY KEY,
isbn TEXT NOT NULL,
title TEXT,
author TEXT,
release_date DATE,
cover_id INTEGER
);
DROP TABLE IF EXISTS cover;
CREATE TABLE cover
(
id SERIAL PRIMARY KEY,
isbn TEXT NOT NULL,
image BYTEA NOT NULL
);
- Enter the correct database connection information in the application.properties
- Replace:
<PORT>
,<DATABASE_NAME>
,<USERNAME>
and<PASSWORD>
- Replace:
- Maven install:
mvn install
- Start container:
docker-compose up