GithubHelp home page GithubHelp logo

chrylis / caniprintit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from artsquare/caniprintit

0.0 2.0 0.0 10.55 MB

Can I Print It?

License: GNU Affero General Public License v3.0

Groovy 2.93% Java 2.63% CSS 7.88% JavaScript 67.61% HTML 16.73% CoffeeScript 2.21%

caniprintit's Introduction

Can I Print It? by ArtSquare

This repository contains the source for the Can I Print It? Web application sponsored by ArtSquare. The application opens a local image file using the JavaScript File API, determines the image’s size in pixels, and calculates what standard print sizes are suitable based on aspect ratio and DPI.

Project layout

Can I Print It? is a Spring Boot application serving a mostly-static single-page modeless site. Maven is used as the top-level build system, and the spring-boot:repackage goal is run in the launcher module to produce a runnable jar.

The bulk of the code is contained in the resources module, which is a Mimosa project. Maven simply installs and invokes Mimosa to process the Web resources and then copies the output into a Web jar for the launcher.

Building and running

This project requires Java 7 or higher, Maven 3.1 or higher, and NodeJS v0.10.35 or higher (including NPM 2). No other dependencies need to be installed.

Run the command mvn package from the project root directory. Maven will install the Node and Bower packages needed for Mimosa to run. The result of the build will be a self-contained executable jar in link:caniprintit-launcher/target/ that can be run with java -jar.

After Mimosa is set up, resources can be processed in development mode by running ./node_modules/mimosa/bin/mimosa watch from the caniprintit-resources module directory. Runtime resource refresh requires that Maven serve the Java classpath out of the on-disk layout instead of the packaged jar for caniprintit-resources; the ArtSquare team uses m2eclipse workspace resolution to handle this.

caniprintit's People

Contributors

arikgadye avatar artsquare avatar chrylis avatar

Watchers

 avatar  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.