https://github.com/ryanj/pillar-base
pillarjs example repo - https://pillarjs.github.io/
https://github.com/ryanj/pillar-base
Last synced: over 1 year ago
JSON representation
pillarjs example repo - https://pillarjs.github.io/
- Host: GitHub
- URL: https://github.com/ryanj/pillar-base
- Owner: ryanj
- Created: 2016-01-30T05:39:44.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-05-20T04:42:18.000Z (about 9 years ago)
- Last Synced: 2025-03-16T22:36:01.800Z (over 1 year ago)
- Language: JavaScript
- Size: 32.2 KB
- Stars: 3
- Watchers: 3
- Forks: 58
- Open Issues: 56
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pillar-base [](https://david-dm.org/ryanj/pillar-base)
*A basic pillarjs example repo - Learn more at https://pillarjs.github.io/*
[](https://openshift.redhat.com/app/console/application_type/custom?cartridges%5B%5D=nodejs-0.10&initial_git_url=https%3A%2F%2Fgithub.com%2Fryanj%2Fpillar-base.git&name=pillarjs)
To deploy a clone of this application using the [`rhc` command line tool](http://rubygems.org/gems/rhc):
rhc app create pillar nodejs-0.10 --from-code=https://github.com/ryanj/pillar-base.git
Or [link to a web-based clone+deploy](https://openshift.redhat.com/app/console/application_type/custom?cartridges%5B%5D=nodejs-0.10&initial_git_url=https%3A%2F%2Fgithub.com%2Fryanj%2Fpillar-base.git) on [OpenShift Online](http://OpenShift.com) or on [your own OpenShift cloud](http://openshift.github.io):
https://openshift.redhat.com/app/console/application_type/custom?cartridges%5B%5D=nodejs-0.10&initial_git_url=https%3A%2F%2Fgithub.com%2Fryanj%2pillar-base.git
# OpenShift V3 / Kubernetes
You'll need the `oc` command line tool to install this project in a Docker-based OpenShift environment. The cli tool binary is available via the [`openshift/origin` releases page](https://github.com/openshift/origin/releases/).
Use [vagrant](http://openshift.org/vm) or [ansible](https://github.com/openshift/openshift-ansible) to setup your own deployment of OpenShift, then use `oc login` to authenticate. These instructions assume that a basic [nodejs builder image](https://github.com/openshift/origin/tree/master/examples/image-streams) has already been made available in the `openshift` project by an admin.
Build and deploy the application from the command line using the `oc` command line tool, and a nodejs builder image:
oc new-app openshift/nodejs~https://github.com/ryanj/pillar-base
After your deployment has completed, find the pod NAME for your hosted container:
oc get pods
Push changes from a local repo into this environment using the pod NAME from the previous step, allowing you to test your changes without stopping to make a commit:
oc rsync --exclude='node_modules*' . YOUR_PODNAME:
Use gulp to automatically publish updates your remotely-hosted container as you work:
PODNAME=YOUR_PODNAME gulp
The included [`gulpfile`](https://github.com/ryanj/pillar-base/blob/master/gulpfile.js) example will automatically distribute changes from your local `index.html` file into the identified pod.
# Local Development
Install dependencies:
```bash
npm install
```
Start a local server:
```bash
npm start
```
## License: MIT