-
Notifications
You must be signed in to change notification settings - Fork 0
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.
npm install -g glad-cli
npm install glad --save
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-folderglad init --odm=mongoose
Example using Postgresql & Waterline
- Create a new folder for your project
cd /path/to/new-folderglad init --odm=waterline --adapter=sails-postgresql
- Create a new folder for your project
cd /path/to/new-foldernpm install glad --save