Giter VIP home page Giter VIP logo

restful-image-resizer's Introduction

What is this?

This is a very simple backend service written in Java that handles image resizing. It is designed as a toy project using the following libraries

  • JBoss 7.1.1.Final -- Gotten from here. The version is important.
  • RestEasy
  • Guice
  • Guava
  • JUnit
  • Jackson
  • ImgScalr
  • Maven

This project was made using IntelliJ and as such, that IDE will probably be easiest to make edits to the project with.

Build Instructions

In order to build the project, navigate to the project directory and type mvn clean verify (this assumes mvn is on your path). This will also run the full test suite included.

Deploy Instructions

This application was written for JBoss 7.1.1. In order to deploy, copy the target/homework-1.0.war file to <jboss_home>/standalone/deployments. From there, start the JBoss server by running standalone from the <jboss_home>/bin directory.

Usage

This program only has a backend and communicates via JSON. The program responds to 4 REST commands

  • homework-1.0/queue -- index
  • homework-1.0/queue/<job_id> -- show
  • homework-1.0/queue/<job_id>.jpg -- show the image
  • homework-1.0/queue/?url=<some_image_url>&size=<width>x<height> -- create

The flow is that the user navigates to the create action and supplies the URL of an image to be resized and the new size. The user then gets a job ID for reference. At some point in the future the user can check the job ID using either the show page to get the status, or, if the job is finished, the show.jpg page to see the result. At any time, the user can navigate to the index to check the status of all their jobs.

restful-image-resizer's People

Contributors

jmorra avatar jon-morra-zefr 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.