Skip to content

Latest commit

 

History

History
48 lines (38 loc) · 1.12 KB

README.md

File metadata and controls

48 lines (38 loc) · 1.12 KB

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.