Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

An example Spine application written in Node.js and Express 4

License

Notifications You must be signed in to change notification settings

getspine/spine-example-node

Open more actions menu

Repository files navigation

spine-example-node

This repo contains an example application designed to run on Spine, built with Node.js and Express 4.

Deploying to Spine

Once you've created a Spine account, be certain that you've installed the Spine CLI.

After installing the CLI, you can bring this application up with a single command:

$ spine deploy

To access your new application, ask Spine for your user info and note the subdomain:

$ spine user info
email: phil@collins.com
name: philcollins
docker_hub_username: philcollins
subdomain: demo

You can now access your application here:

http://example-<subdomain>.spi.ne

Running Locally

First, be certain that you've installed Node.js using the instructions on their site.

Once you've done so, you can run this application locally with the following commands:

$ git clone https://github.com/getspine/spine-example-node
$ cd spine-example-node
$ npm install
$ npm start

Building a Docker Container

If you'd like to modify your running container, you'll need to build and push a new image to the Docker Hub.

If you haven't already installed Docker, you can obtain it right here.

Once Docker is installed, be certain that you're logged in:

$ docker login

After you've successfully logged in, you can build and push your image with the following commands:

$ export DOCKER_ID_USER="your_docker_username"
$ docker build -t ${DOCKER_ID_USER}/example .
$ docker push ${DOCKER_ID_USER}/example

Please note: you'll need to change the image field within your Backbone file to point to the image name you pushed up.

About

An example Spine application written in Node.js and Express 4

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.