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

https://github.com/squidmin/google-books-api-sandbox

Google Books API sandbox
https://github.com/squidmin/google-books-api-sandbox

flask gcp google-books google-books-api pytest python3

Last synced: 7 months ago
JSON representation

Google Books API sandbox

Awesome Lists containing this project

README

          

# google-books-api-sandbox

## Quickstart

### Local development

```bash
python3 main.py \
--GOOGLE_BOOKS_API_KEY=${GOOGLE_BOOKS_API_KEY} \
--library=${CONTENT_BASE_DIR}
```

For example:

```bash
python3 main.py \
--GOOGLE_BOOKS_API_KEY=${GOOGLE_BOOKS_API_KEY} \
--CONTENT_BASE_DIR=${CONTENT_BASE_DIR}
```

### Container

```bash
docker build . -t readops
```

```bash
docker run -p 5000:5000 \
-e GOOGLE_BOOKS_API_KEY=${GOOGLE_BOOKS_API_KEY} \
-v /path/to/content:/library \
readops
```

For example:

```bash
docker run -p 5000:5000 -v /Users/admin/Documents/07_books:/library readops
```

### View the catalog

Navigate to `http://localhost:5000/catalog` to view OPDS the catalog.