Skip to content

Installation

Glad JS edited this page Oct 14, 2017 · 1 revision

The recommended way to install Glad is using Glad CLI. However, it is not necessary, but again highly reccomended. Previous versions of glad included the CLI. In versions >= 1.0.0, the CLI has been abstracted out to a separate package.

Installing Glad CLI

npm install -g glad-cli

Installing Glad without the CLI

npm install glad --save


Creating a new project using Glad CLI

Glad CLI has many options for initializing a project. The CLI supports several different databases including MongoDB, Postgresql, MySQL. In addition, Glad CLI supports either Mongoose, Waterline, or usage without an ORM/ODM. You can read the documentation for Glad-CLI here.

Example using MongoDB & Mongoose

  • Create a new folder for your project
  • cd /path/to/new-folder
  • glad init --odm=mongoose

Example using Postgresql & Waterline

  • Create a new folder for your project
  • cd /path/to/new-folder
  • glad init --odm=waterline --adapter=sails-postgresql

Creating a project without Glad-CLI

  • Create a new folder for your project
  • cd /path/to/new-folder
  • npm install glad --save

Clone this wiki locally