https://github.com/ryanj/restify-base
A basic Restify example with support for easy APIs and static files
https://github.com/ryanj/restify-base
Last synced: 4 months ago
JSON representation
A basic Restify example with support for easy APIs and static files
- Host: GitHub
- URL: https://github.com/ryanj/restify-base
- Owner: ryanj
- Created: 2014-04-27T04:37:35.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2017-04-09T06:50:33.000Z (about 9 years ago)
- Last Synced: 2025-10-29T08:38:17.205Z (8 months ago)
- Language: HTML
- Homepage: https://restify-h0st.rhcloud.com
- Size: 31.3 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 32
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# A basic Restify project [](https://build-shifter.rhcloud.com/job/restify-build/) [](https://david-dm.org/ryanj/restify-base)
*With support for serving easy APIs and static content*
[](https://openshift.redhat.com/app/console/application_type/custom?cartridges%5B%5D=nodejs-0.10&initial_git_url=https%3A%2F%2Fgithub.com%2Fryanj%2Frestify-base.git&name=restify)
To deploy a clone of this application using the [`rhc` command line tool](http://rubygems.org/gems/rhc):
rhc app create restify nodejs-0.10 --from-code=https://github.com/ryanj/restify-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%2Frestify-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%2Frestify-base.git
## Local Development
Install dependencies:
```bash
npm install
```
Start a local server:
```bash
npm start
```
## Docker
To run [the related docker image](https://registry.hub.docker.com/u/ryanj/restify-base/):
```bash
docker pull ryanj/restify-base
docker run -d -p 8080:8080 -e "HOSTNAME=localhost" -e "APP_NAME=app_name" ryanj/restify-base
```
## OpenShiftM5 and kubernetes
A [sample kubernetes pod configuration file](https://github.com/ryanj/restify-base/blob/master/restify-pod.json) is included for running [this project's Docker build](https://registry.hub.docker.com/u/ryanj/restify-base/) on [an OriginM5 hosting environment](https://github.com/openshift/origin#getting-started):
```bash
HOSTNAME=localhost APP_NAME=app_name $GOPATH/src/github.com/openshift/origin/_output/go/bin/openshift kube create pods -c ~/src/restify-base/restify-base.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/)