- Git
- Docker
Clone repository
$ git clone https://github.com/mykhalskyio/image-api.git
Run make file
$ make build
Run migrate
$ make migrate-init
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
- POST - /api/upload (form-data, image)
- GET - /api/download/id?quality=100/75/50/25
- DELETE - /api/delete/id