images-back
is the webservice to store and process images.
https://images-back2.herokuapp.com/
Install images-back
from sources, by running:
git clone https://github.com/PhilLar/Images-back.git
cd images-back
go install ./cmd/images-back
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;
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
- Issue Tracker: https://github.com/PhilLar/images-back/issues
- Source Code: https://github.com/PhilLar/images-back