Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 app Error 404 in chapter
Octocat-spinner-32 config
Octocat-spinner-32 db
Octocat-spinner-32 public
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Procfile
Octocat-spinner-32 README.md
Octocat-spinner-32 dump.rdb Init
Octocat-spinner-32 npmfile.js
Octocat-spinner-32 package.json Update package deps
Octocat-spinner-32 server.js
README.md

Welcome to Railway Example App

before start

make sure redis server is started OR change config/database.js to use another driver. please note, sql drivers require command railway db migrate to create database and appropriated tables, make sure to run in before railway seed command.

to get started

git clone git://github.com/anatoliychakkaev/railway-example-app.git lib-app
cd lib-app
npm install -l
railway seed
node server.js

to get started with MongoDB and MongoHQ

git clone git://github.com/anatoliychakkaev/railway-example-app.git lib-app
cd lib-app
npm install -l
npm install mongodb
npm install mongoose

Then modify 'database.json' as follows;

{ "development":
{
   "driver":   "mongoose",
   "url":      "mongodb://<user>:<pass>@<server>.mongohq.com:<port>/<db_name>"
}, "test":
  { "driver":   "memory"
  }
}

(replace all entires with ecapsulation) MongoHQ provides all the details in regard to connection string.

Now finally run

node server.js

Nested resources in action!!

Something went wrong with that request. Please try again.