Skip to content

Latest commit

 

History

History
47 lines (30 loc) · 1.14 KB

getting-started.md

File metadata and controls

47 lines (30 loc) · 1.14 KB

Getting Started

The Getting page covers how to start a Trails app from scratch.
For a more detailed getting started tutorial please folow : Detailled instructions

First Step : Installation

Please follow the installation Guide.

Second Step : Use Generators

Trails uses Yeoman to generate scaffolding for new applications, and to create resources inside the application.

$ yo trails --help

Usage:
  yo trails

Generators:

  Create New Model
    yo trails:model <model-name>

  Create New Controller
    yo trails:controller <controller-name>

  Create New Policy
    yo trails:policy <policy-name>

  Create New Service
    yo trails:service <service-name>

Third Step : Run

Once installation is complete, begin your journey!

$ node server.js

We don't recommend the use of npm start because of memory wastes, but you can still use it.

For more information about npm start memory wastes, please read: The “npm start” pattern wastes a lot of RAM