Skip to content

cloudControl/nodejs-sails-example-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sails.js example for the TodoMVC project

A simple todo list application using:

  • Backend: Sails.js with socket.io (websockets), waterline, mysql
  • Frontend: JQuery, Handlebar.js

Getting started

Learn more about Sails.js at http://sailsjs.org/.

Install Sails.js

$ sudo npm -g install sails

Install dependencies

$ npm install

Configure database settings

Edit config/adapters.js:

development: {
        module: 'sails-mysql',
        host: DB_HOST,
        user: DB_USERNAME,
        password: DB_PASSWORD,
        database: DB_NAME,
        pool: true,
        connectionLimit: 2,
        waitForConnections: true
    }

Run locally

$ sails lift

Visit in Browser

When the server is started, you can visit the app at: http://localhost:1337

Thanks

We would like to thank Sindre Sorhus for the TodoMVC templates and the JQuery Example code we had adopted.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published