Giter Site home page Giter Site logo

background's Introduction

Background - An app for your desktop

There are two parts to the app, a small HTML / JS (React) app that reads JSON files and renders the page based on them and a very small node app that loads a page and spits out an image of the page.

To run it, install node, newest version or... whatever version you want probably.

cd app
mkdir blueprints
mkdir public/quotes
npm install
npm start

You should now have a server running on localhost:3000 with a big picture of the Buddha.

To get a screenshot, open an API client like Postman and POST to http://localhost:3000/print

{
  "size": {
    "width": 1280,
    "height": 960
  },
  "quotation": {
    "text": "I don't know where I'm going from here, but I promise it won't be boring.",
    "attribution": "David Bowie",
    "source": {
      "title": "",
      "url": ""
    }
  },
  "image": {
    "url": "",
    "path": "guitar.jpg",
    "source": {
      "title": "",
      "url": ""
    }
  }
}

You will now have an image file in the app/public/quotes directory that's representational of what you want.

TODO

  • Honor height / width
  • Honor quote / image attribution

Thoughts on the future of the app

  • How to organize quotations /images into categories that can be mixed and matched
  • What other widgets are useful? Weather? News? Sports? KISS and stay w/ image and quote?

background's People

Contributors

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