Skip to content

web service using echo and gocv to accept, process and store images

Notifications You must be signed in to change notification settings

PhilLar/Images-back

Repository files navigation

Images-back

images-back is the webservice to store and process images.

Link to the web-service

https://images-back2.herokuapp.com/

Installation

Install images-back from sources, by running:

git clone https://github.com/PhilLar/Images-back.git
cd images-back
go install ./cmd/images-back

Database

Connect to database using psql and run this script to create db and user:

CREATE DATABASE imagesapp;
CREATE USER images WITH PASSWORD 'secret';
GRANT ALL PRIVILEGES ON DATABASE "imagesapp" to images;
ALTER DATABASE imagesapp OWNER TO images;

Usage

You can run it:

export DATABASE_URL="postgres://images:secret@localhost/imagesapp?sslmode=disable"
images-back

to add image to db:

curl -F 'file=@pic.jpg' -F 'title=mytitle' https://images-back2.herokuapp.com/files

to list all images in db:

curl https://images-back2.herokuapp.com/images

Contribute

License

WTFPL 2.0

About

web service using echo and gocv to accept, process and store images

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published