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
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
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.