Giter Club home page Giter Club logo

plants's Introduction

Plants ๐Ÿ’๐Ÿ“”

The Plants API is a RESTful service designed to make illustrations of plants from old books available through the International Image Interoperability Framework (IIIF), leveraging the Invenio-IIIF library.

Note: This is a hobby project.

Features

  • Search plants illustrations (/plants): Users can access a list of available plants illustrations;

  • IIIF Image Retrieval (/iiif): Utilizes IIIF standards to serve images of plants, enabling rich interaction such as zooming and panning.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

  • Git
  • Make
  • Docker and Docker Compose

Installation (Docker)

To use the Plants API, first, you need to clone the repository:

git clone https://github.com/m3nin0-labs/plants

Then, navigate to the cloned directory:

cd plants

In the repository directory, use make to configure it. To do this, you can start the containers:

make up

Then, execute the database migrations:

make migrations

To populate the database with example data, use:

make ingest

Other options are available in the Makefile, including:

  • make up: Start the application and database using Docker and Docker-compose;
  • make down: Stop and remove containers, networks, images, and volumes;
  • make migrations: Run database migrations to prepare your environment;
  • make ingest: Ingest example data into the database to start testing the API.

Development

To develop the Plants API, first, you need to clone the repository:

git clone https://github.com/m3nin0-labs/plants

Then, access the cloned repository:

cd plants

You can install the project using:

poetry install

After install the project, you can create a database (PostgreSQL). Before execute the command below, make sure the database address in the settings.toml is correct:

FLASK_APP=plants/main.py flask db upgrade

Then, you can execute the project:

FLASK_APP=plants/main.py flask run

Contributing

We welcome contributions! If you have suggestions for improvements or bug fixes, please feel free to fork the repository and submit a pull request.

Acknowledge

The example data available in this repository, comes from the Old Book Illustrations website. Thanks!

License

plants is distributed under the MIT license. See LICENSE for more details.

plants's People

Contributors

m3nin0 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.