Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tonybenoy/image-service
https://github.com/tonybenoy/image-service
Last synced: 22 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/tonybenoy/image-service
- Owner: tonybenoy
- Created: 2023-02-08T14:38:08.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-03T15:34:06.000Z (7 months ago)
- Last Synced: 2024-05-02T02:19:44.770Z (6 months ago)
- Language: Python
- Size: 249 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# STEP
This a simple project to allow a webservice that processes the image.
## Installation
The project user [Docker](https://www.docker.com/) and [Docker Compose](https://docs.docker.com/compose/).To install Docker, follow the instructions in the [Docker documentation](https://docs.docker.com/engine/installation/).
## Usage
To run the project create a `.env` file in the root directory of the project, use the `.env-copy` file as a template.To build the project:
```bash
docker-compose build
```
Install alembic to manage the database migrations:
```bash
pip install alembic
```
Start the project:
```bash
docker-compose up
```To run the migrations:
```bash
alembic upgrade head
```The project uses [minio](https://min.io/) as a storage service. Create a bucket in minio which is accessible at `http://localhost:9000` with the credentials and name in the `.env` file.
The project is accessible at `http://localhost:8000`.
## Development
The project uses poetry to manage the dependencies. To install the dependencies, run:
```bash
poetry install
```Use docker compose to build the project:
```bash
docker-compose build
```To run the project:
```bash
docker-compose up
```The project uses pre-commit to run the linters and formatters. To install the pre-commit hooks, run:
```bash
pre-commit install
```