Giter VIP home page Giter VIP logo

image-viewer's Introduction

Basic Node App for a mini DAM with a very specific purpose

Built for large-scale image viewing. Assets added to the public/assets directory are gitignored.

Creates a list of all files in the public/assets folder then searches for jpgs and creates JSON objects based on jpg name of the psd. Writes to an output.json used as a local database.

Index loops through output.json and creates a line item for each jpg thumbnail and sets the .psd pairing to download on click.

Check out the live demo on Heroku.

Getting Started

Assuming you've got node installed, you'll need to run npm install and grunt to startup the node server, and generate the appropriate files.

To add your assets, for each psd, you'll want to add a thumbnail equivelant with the same exact name and location, which will determine the pairing.

App Structure

  • App.js - this is our main application javascript, it starts the party
  • Procfile - this is what tells heroku what to run
  • src/ - our client side source sass & js
  • views/ - jade files & template that generates our HTML and integrates data
  • routes/ - since we're a single page, our main route file, passes data into templates
  • public/ - all of our generated css/js and static files
  • modules/ - functions/modules used in the node app.

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.