Trafitto / place-compagni-di-merende

A quick and simple service for getting pictures of the Compagni Di Merende

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

{Place Compagni di Merende}

forthebadge forthebadge forthebadge

About

Place Compagni Di Merende serves beautiful images of our trio of best friends, for the purpose of using them as placeholders for your sites.

Usage

You will get a random image of the Snack Companions

Simple use

Use in your html img tag

<img src="http://0.0.0.0:5000/place">

You can have one! Go on, choose!!

Specify your favorite companion by adding it to the url

<img src="http://0.0.0.0:5000/place/pacciani">

The choice is between /pacciani, /vanni, /lotti

Query Params

The optional query params are width and height,

<img src="http://0.0.0.0:5000/place?width=500&height=500">

the maximum size of the photos is 2000x2000px

Note:

If only one of the two params was passed the image would be automatically resize while maintaining the ratio

Getting Started

Still in development

It is basically a Flask webserver, you can use Doker and docker-compose.

forthebadge

Build the project with docker compose:

docker-compose -f docker-compose.yml build

Up the container with:

docker-compose -f docker-compose.yml up

and go to 0.0.0.0:5000 to se the homepage

for the API 0.0.0.0:5000/place

About

A quick and simple service for getting pictures of the Compagni Di Merende


Languages

Language:HTML 50.4%Language:Python 45.5%Language:Makefile 2.8%Language:Dockerfile 1.4%