Coder Social home page Coder Social logo

sketchpod's Introduction

SketchPod Dependency Check

Launch on OpenShift

To deploy a clone of this application using the rhc command line tool:

rhc app create sketchpod nodejs-0.10 --from-code=https://github.com/ryanj/sketchpod.git

Or link to a web-based clone+deploy on OpenShift Online or on your own OpenShift cloud:

https://openshift.redhat.com/app/console/application_type/custom?cartridges%5B%5D=nodejs-0.10&initial_git_url=https%3A%2F%2Fgithub.com%2Fryanj%2Fsketchpod.git

Local Development

Install dependencies:

npm install

Start a local server, passing in config via the environment:

CUID=007 USERNAME=foo SUBMISSION="openshift for the win!" npm start

Next, load the index page to check the initial content. Then run upload an image by running the post_image.manual.js script in another terminal:

OPENSHIFT_SERVER="http://localhost:8080" CUID="007" SUBMISSION="yes!" USERNAME="joe" node post_image.manual.js

Reload the index page to verify that the sketchpod has received it's content submission.

Docker

To run the related docker image:

docker pull ryanj/sketchpod
docker run -d -p 8080:8080 -e "HOSTNAME=localhost" -e "CUID=007" -e "USERNAME=user007" -e "SUBMISSION=openshift for the win!" ryanj/sketchpod

OpenShiftV3

First, choose an application name for this service and update the template to replace all instances of APP_NAME:

sed -i -e 's/APPNAME/sketchpod/g' app_template.json

Then, launch the service using the osc command-line tool:

osc create -f app_template.json

License

This code is dedicated to the public domain to the maximum extent permitted by applicable law, pursuant to CC0 (http://creativecommons.org/publicdomain/zero/1.0/)

sketchpod's People

Contributors

ryanj avatar andresgalante avatar bleathem avatar greenkeeperio-bot avatar

Watchers

James Cloos 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.