Getting Started with Rails On Node

Rails on Node is a fast, easy way to build scalable Node.js servers that are multithreaded for mass traffic. Rails On Node provides great support with APIs and Frontend web technologies with easy, fast tools at your disposal.

Quick Start

Installation

Required Softwares
$ npm i -g rails-on-node$ node-rails

Create your first project

$ npm install -g rails-on-node$ node-rails create YOUR-PROJECT-NAME$ cd YOUR-PROJECT-NAME$ npm install

Optional: To Add Serverside React

$ node-rails settings react

Optional: To Add Serverside Vue

$ node-rails settings vue

Optional: To Add SASS for styling

$ node-rails settings sass

Optional: To Add LESS for styling

$ node-rails settings less

Optional: To Add Bootstrap for styling

$ node-rails settings bootstrap switch='true'

Optional: To Add a SQL Database

$ node-rails setup-data-base sql

Optional: To Add a MongoDB Database

$ node-rails setup-data-base mongodb

Run development with hot reloading

Must have redis running on port 6379

$ npm run build:dev$ npm run dev

Run production with multithreads

Must have redis running on port 6379

$ npm run build:prod$ npm run prod

Your first project is now ready!

Your server listens to port 8080: http://localhost:8080

Alias Shortcuts

Alias For Command: create

$ node-rails c YOUR-PROJECT-NAME

Alias For Command: settings

$ node-rails s <YOUR-SETTINGS>

Alias For Command: setup-data-base

$ node-rails sdb <YOUR-DATABASE-CHOICE>