Sign inSign up

hug33k/brandstyle

By hug33k

•Updated over 8 years ago

A simple API to get style of brands / websites / ...

Image
0

10K+

hug33k/brandstyle repository overview

⁠BrandStyle

Build Status

A simple API to get style of brands / websites / ...

⁠How to use it ?

You can use it via https://brandstyle.hug33k.fr⁠ or by deploying it by yourself. (My URL will be used in next examples).

⁠GET /brands

Will return list of available brands

$> curl https://brandstyle.hug33k.fr/brands
{
  "brands": [
    "brand1",
    "brand2"
  ]
}
⁠GET /brands/

Will return info for asked brand

$> curl https://brandstyle.hug33k.fr/brands/github
{
  "name": "GitHub"
  "colors": [
    "4078c0",
    "6cc644",
    "bd2c00",
    "c9510c",
    "6e5494",
    "fafafa",
    "f5f5f5",
    "333"
  ]
}
⁠GET /brands//color

Will return colors for asked brand

$> curl https://brandstyle.hug33k.fr/brands/github/colors
{
  "colors": [
    "4078c0",
    "6cc644",
    "bd2c00",
    "c9510c",
    "6e5494",
    "fafafa",
    "f5f5f5",
    "333"
  ]
}

⁠How to run it ?

If you use Docker :

$> docker pull hug33k/brandstyle
$> docker run -d --name BrandStyle -p YOUR_PORT:80 -e TZ=YOUR_TIMEZONE hug33k/brandstyle

If you use docker-compose.yml:

version: "3"

services:

  quoter:
    container_name: BrandStyle
    image: hug33k/brandstyle
    ports:
     - YOUR_PORT:80
    environment:
     - TZ=YOUR_TIMEZONE
    restart: always

If you don't have or hate Docker :

$> export BRANDSTYLE_PORT=YOUR_PORT
$> git clone [email protected]:hug33k/BrandStyle.git
$> cd BrandStyle/
$> pip install -r requirements.txt
$> python server.py

Tag summary

Content type

Image

Digest

Size

81.9 MB

Last updated

over 8 years ago

docker pull hug33k/brandstyle