An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# Book Shelf

![GitHub Workflow Status](https://img.shields.io/github/workflow/status/BreakBB/book-shelf/Java%20CI%20with%20Maven) [![codecov](https://codecov.io/gh/BreakBB/book-shelf/branch/master/graph/badge.svg?token=K6SZEJ0T3G)](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`