Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 13 days 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 (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-04-09T06:50:33.000Z (over 7 years ago)
- Last Synced: 2024-10-11T00:12:05.752Z (about 1 month ago)
- Language: HTML
- Homepage: https://restify-h0st.rhcloud.com
- Size: 31.3 KB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 32
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# A basic Restify project [![Build Status](http://img.shields.io/jenkins/s/https/build-shifter.rhcloud.com/restify-build.svg)](https://build-shifter.rhcloud.com/job/restify-build/) [![Dependency Check](http://img.shields.io/david/ryanj/restify-base.svg)](https://david-dm.org/ryanj/restify-base)
*With support for serving easy APIs and static content*[![Launch on OpenShift](https://launch-shifter.rhcloud.com/launch.svg)](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/)