https://github.com/breakbb/book-shelf
Simple Spring playground project.
https://github.com/breakbb/book-shelf
Last synced: about 1 year ago
JSON representation
Simple Spring playground project.
- Host: GitHub
- URL: https://github.com/breakbb/book-shelf
- Owner: BreakBB
- Created: 2020-11-11T09:05:18.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-05-06T06:58:33.000Z (about 4 years ago)
- Last Synced: 2025-02-09T13:13:00.979Z (over 1 year ago)
- Language: Java
- Size: 66.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Book Shelf
 [](https://codecov.io/gh/BreakBB/book-shelf)
A simple Spring playground project. You can find the frontend counter part here: [Book Shelf UI](https://github.com/BreakBB/book-shelf-ui).
## Setup
### Database initialization
#### Book
```sql
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
);
```
#### Cover
```sql
DROP TABLE IF EXISTS cover;
CREATE TABLE cover
(
id SERIAL PRIMARY KEY,
isbn TEXT NOT NULL,
image BYTEA NOT NULL
);
```
## Running
1. Enter the correct database connection information in the application.properties
- Replace: ``, ``, `` and ``
2. Maven install: `mvn install`
3. Start container: `docker-compose up`