(press spacebar to advance slides)

Ian VanSchooten

SANE Contributor

IanVS

@ianvanschooten

Platform for Full Stack JavaScript Web Development

Optimal Flow

Automation

Low Barrier to Entry

Ecosystem of Addons*

*Currently Beta

SANE

Sails-Generate-Ember-Blueprints

Sails.js

Photo

100% JavaScript

Node.js + Express

Any Database

Configuration

Convention

MVC Web Framework

Loose Coupling

over

As of April, 2015

REST API

WebSockets

Security Policies

Auto-Generated Endpoints

 The code you write works with WebSockets and HTTP

Reusable middleware functions

Core

Community

Memory

Benefits of SANE

For Ember Developers

Vibrant Community

Quickly create an integrated full stack

Maintain 100% JavaScript to avoid context switching

Modularity (Docker, addons, hooks, etc.)

How to Use SANE

npm install -g sane-cli

Installation

Note: You should install these before SANE:

node.js v0.12 or io.js

* If you plan to use Docker

How to Use SANE

sane new project_name

Create a New Project

Basic project using sails-disk and no Docker:

sane new project_name -d mongo --docker

Project using MongoDB and Docker:

Other database options:

-d [mongo|postgres|mysql|disk]

How to Use SANE

sane generate resource user

Generate a Resource

Create a "user" resource in ember and "users" API in Sails:

sane generate resource user name:string birthYear:number

Create a "user" and attributes:

How to Use SANE

sane up

Start Servers

Start Sails and Ember:

sails lift && ember serve --proxy=localhost:1337

Equivalent to:

This starts back end on localhost:1337 and front end on localhost:4200

Front and back ends will live-reload as you make changes

Learning Resources

gitter.im/artificialio/sane

Lively conversation and support

100percentjs.com

Tutorials + example project (how-to-sane)

sanestackbook.com

Community-developed training manual

Credits

SANE

Markus Padourek (globegitter)

How-To-Sane

Martin Genev (mgenev)

Sails.js

Mike McNeil (mikermcneil)

Plus countless other contributors!

How to Contribute

Use SANE

Report any issues/bugs/pain points

Tackle an Issue or Feature

Pull Requests welcome!

Help write the book

A great way to learn, as well

SANE

By Ian VanSchooten

SANE

A basic introduction to SANE - Ember on Sails

  • 1,263