Skip to content

mykhalskyio/image-api

Repository files navigation

GitHub go.mod Go version Go Report Card Github Repository Size

Image API

Requirements

  • Git
  • Docker

How to run with make

Clone repository

$ git clone https://github.com/mykhalskyio/image-api.git

Run make file

$ make build

Run migrate

$ make migrate-init

How to run with docker

Clone repository

$ git clone https://github.com/mykhalskyio/image-api.git

Run docker-compose

$ docker-compose up --build api

Run migration

$ docker run -v ./schema:/migrations --network host migrate/migrate     -path=/migrations/ -database postgres://postgres:qwerty123@localhost:54320/postgres?sslmode=disable up

Endpoints

  • POST - /api/upload (form-data, image)
  • GET - /api/download/id?quality=100/75/50/25
  • DELETE - /api/delete/id

About

Image API for uploading, optimizing, and serving images

Resources

Stars

Watchers

Forks