Coder Social home page Coder Social logo

proxy-thumbor-api's Introduction

Proxy Thumbor API

Proxy thumbor API to resize images by categories and alias with docker-compose for supply

proxy-thumbor-api
 ├── src
 │   ├── java
 │   │    └── com.proxy.thumborapi
 │   │               ├── config
 │   │               ├── exception
 │   │               ├── model
 │   │               ├── service
 │   │               ├── thumbor
 │   │               ├── web
 │   │               └── ThumborApiApplication.java
 │   └── resources
 │          ├── application.yml #config sizes and categories for default
 │          ├── application-pre.yml #config sizes and categories for pre-production envoriment
 │          ├── application-pro.yml #config sizes and categories for production envoriment
 │          └── aplication-uat.yml #config sizes and categories for uat envoriment
 │   
 ├── test
 │   
 ├── build.gradle  # config to gradle
 ├── docker-compose.yml # file to supply envoriment thumbor oficial engine
 └── README.md

Development

The project uses a docker container as development environment.

Docker pre-requisites

First step add this dns in your /etc/hosts:

127.0.0.1 thumbor_server

second step:

docker-compose up -d

Finally run sprintBoot, sorry not have docker container for run api, not yet :-(:

gradle bootRun

Execute test:

gradle test

or use Gradle projects un your IntellijIDEA: pmp-thumbor-api [bootRun]

Sample and check image

Legacy with prefix /api

http://localhost:8080/api/resize/0x0/sample.jpg

with size:

http://localhost:8080/resize/es/zoom/sample-two.jpg

or webp (chrome only)

http://localhost:8080/resize/es/zoom/sample-two.jpg?webp=true

View list of images, only AWS bucket:

http://localhost:8080/images/list

proxy-thumbor-api's People

Contributors

acostasg avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.