Questions tagged [railway.js]

Railway.JS(now known as CompoundJS) - MVC framework. Create NodeJS web apps faster with more energy, using RailwayJS.

RailwayJS (now known as CompoundJS) is the Node.JS MVC framework based on ExpressJS, fully ExpressJS-compatible. It allows you to build web applications in a similar manner as in Ruby On Rails.

The main objective of the framework - web development without pain.

Some of the features of RailwayJS are:

  • Full MVC+H stack
  • Resource-based routing
  • JugglingDB ORM
  • Multi-locale support
  • Coffee-script support (howto)
  • Generators for model, controller, scaffold
  • Testing: nodeunit, cucumis, code coverage reporting
  • Debugging: railway console
  • Extensions
61 questions
65
votes
4 answers

RailwayJS vs TowerJS

Again... selecting framework. I have stopped on these two TowerJS and RailwayJS, but it seams these are very similar and it is very difficult which way to choose Both are based on Express, both are RoR style frameworks... Which one is the most…
kingpin
  • 1,498
  • 1
  • 11
  • 12
15
votes
2 answers

How do I generate JSON with ExpressJS/RailwayJS (Node.JS)

I was exploring developing in Node.JS and found ExpressJS and RailwayJS (based on Express) which are frameworks for Node. The templating engine used Jade/EJS appears to be more for HTML. How might I generate JSON, eg. when I develop an API
Jiew Meng
  • 84,767
  • 185
  • 495
  • 805
9
votes
7 answers

Error: Cannot find module 'jade~'

Im new to node js. I used Compound Js to create a crud operation. The app was working fine till i tried to alert a value, after that I'm getting the error 500 Error: Cannot find module 'jade~' at Function.Module._resolveFilename…
Okky
  • 10,338
  • 15
  • 75
  • 122
5
votes
1 answer

One to Many relationship in CompoundJS

I'm new to CompoundJS and I had a problem in setting up a one to many relationsip with jugglingDB.I'm using MySQL as database. I have set up two model Book and Author. Book has many authors. This is my schema.js (db/schema.js): var Book =…
Jetson John
  • 3,759
  • 8
  • 39
  • 53
4
votes
1 answer

RailwayJS vs Geddy vs Express vs Socket.IO

Whats the opinion of experts about these frameworks. I'm developing a large application and would like a good framework, but I'm struggling with the amount and variety that exists (it sucks!). Why in Node that is javascript, have so much influence…
4
votes
1 answer

Deploying github repo to railway. app resulting - Application Error Is your app correctly listening on $PORT?

I am deploying my project to railway.app and getting this error Application Error Is your app correctly listening on $PORT?. It was a mix of JS and jQuery but then I added in webpack.config.js and so I can hide my api key. Now works perfect in…
3
votes
0 answers

CompoundJS error when deploying to Heroku or Nodejitsu

I'm trying to deploy a compoundjs (a.k.a. railwayjs) to Heroku or Nodejitsu as a my first end to end test of NodeJS. Steps Node installation: 0.8.16 Heroku tools installation npm install compound -g (v1.1.4-1) Sample heroku app as described in…
Javier
  • 31
  • 3
3
votes
2 answers

How should I implement a RESTful API with a web frontend in Node.js?

I have a setup consisting of multiple servers (written in Java) that need to communicate towards a central server, posting status updates every so often. These status updates will get written to a database, probably MongoDB/Mongoose which will be…
Ian Macalinao
  • 1,608
  • 3
  • 20
  • 30
2
votes
1 answer

Migrate PostgreSQL database from Heroku to Railway

I am trying to find out how to migrate my PostgreSQL database easily from Heroku to Railway. I have tried using heroku pg:backups:capture --app APP_NAME and heroku pg:backups:download with pg_restore and no success. I had the error pg_restore:…
2
votes
1 answer

Helper in NodeJS+CompoundJS

I'm just starting out in CompoundJs and there's a lot I still need to learn. I'm just trying to figure out how Helpers work in NodeJS+CompoundJS, from what I've seen so far Helpers are intended to be used with Views and not so much with your…
Okky
  • 10,338
  • 15
  • 75
  • 122
2
votes
1 answer

Railwayjs csrf - how to get it right

I am using railwayjs and I am trying to upload files. I am doing it using an iframe to enable independent ajax uploads. (disabled multipart parser and am planning to use formidable directly) I am copying the csrf_token from the meta tags from the…
naruvimama
  • 109
  • 1
  • 7
2
votes
1 answer

Railway.js + Jade crashes when a route to '/client' is defined

I get this weird error when I add a route '/client' in Railway.js: 500 ReferenceError: jade is not defined I get this for any valid route in my app, not only '/client'. This line seems to be added to the top of my Jade compiled templates, and is…
emilecantin
  • 286
  • 3
  • 9
1
vote
1 answer

How to add users in RailwayJS?

I'm using RailwayJS, a Node.JS MVC framework based on ExpressJS, fully ExpressJS-compatible. I'm trying to figure out how to add/generate users, but couldn't find any documentation about it. Does anybody know how?
alexchenco
  • 53,565
  • 76
  • 241
  • 413
1
vote
1 answer

Problems with RailwayJS (node.js): Redis connection to localhost:6379 failed - connect ECONNREFUSED

I found this web framework for node.js similar to Rails: http://railwayjs.com/ I followed all the steps: sudo npm install railway -g railway init blog && cd blog npm install -l railway generate crud post title content # ensure mongodb is…
alexchenco
  • 53,565
  • 76
  • 241
  • 413
1
vote
0 answers

Deploy a React & Node.js project to Railway

I am new to using railway, but I have a MERN full-stack app, and I am migrating it from Heroku to railway. I inserted my environment variables to railway from my .env file (such as my MONGODB_URI, API_KEYs, PORT, exc.) the current project file…
paul
  • 41
  • 3
1
2 3 4 5