Getting started

Don't worry, we've got your back.

  • Get your API going.

    Run sails generate foo. This will create a model Foo and controller FooController

  • Lift your app.

    Run sails lift to start up your app. If you visit http://localhost:1337/foo in your browser, you'll see a socket.io-compatible REST API was generated for your 'Foo' model.

  • Dive in and start building.

    From here, you can modify your models, create custom controller methods as Express middleware, and create custom routes (routes are set up in config/routes.js). Visit the Sails website for more information on next steps.

You're looking at: views/home/index.ejs