Code Monkey home page Code Monkey logo

nodejs-sails-example-app's Introduction

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.

nodejs-sails-example-app's People

Contributors

mkorszun avatar alpe avatar

Stargazers

Ménélik Vero avatar  avatar Piotr Lewandowski avatar lentiummmx avatar SPACELAN avatar Abhishek Bedi avatar Christopher Urquidi avatar Pradyumna Chatterjee avatar  avatar Ramon Barros avatar MB avatar

Watchers

kristoffer avatar Tobias Wilken avatar Michael Schubert avatar Stefan Friesel avatar Denis Cornehl avatar James Cloos avatar Abhishek Bedi avatar cloudControl Jenkins avatar Fernando Álvarez avatar  avatar Matthias Wiesner avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.