Sails.js: Difference between revisions

From air
Jump to navigation Jump to search
(Created page with "http://sailsjs.org/ ''Sails makes it easy to build custom, enterprise-grade Node.js apps. It is designed to emulate the familiar MVC pattern of frameworks like Ruby on Rails,...")
 
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 2: Line 2:


''Sails makes it easy to build custom, enterprise-grade Node.js apps. It is designed to emulate the familiar MVC pattern of frameworks like Ruby on Rails, but with support for the requirements of modern apps: data-driven APIs with a scalable, service-oriented architecture. It's especially good for building chat, realtime dashboards, or multiplayer games; but you can use it for any web application project - top to bottom. ''
''Sails makes it easy to build custom, enterprise-grade Node.js apps. It is designed to emulate the familiar MVC pattern of frameworks like Ruby on Rails, but with support for the requirements of modern apps: data-driven APIs with a scalable, service-oriented architecture. It's especially good for building chat, realtime dashboards, or multiplayer games; but you can use it for any web application project - top to bottom. ''

=Get Started=
http://sailsjs.org/get-started
==Installation==
<pre>
sudo npm -g install sails
</pre>

Complément d'installation: [[Grunt]]

==First project==
<pre>
sails new testProject
cd testProject
sails lift
</pre>

visit http://localhost:1337

<pre>
info: .-..-.
info:
info: Sails <| .-..-.
info: v0.11.0 |\
info: /|.\
info: / || \
info: ,' |' \
info: .-'.-==|/_--'
info: `--'-------'
info: __---___--___---___--___---___--___
info: ____---___--___---___--___---___--___-__
</pre>


=Projects from [http://www.manning.com/mcneil/ Sails.js in Action]=

Récupérer les exemples du livre [http://www.manning.com/mcneil/ Sails.js in Action]
<pre>
git clone https://github.com/irlnathan/brushfire-ch3-end.git
git clone https://github.com/irlnathan/brushfire-ch4-start.git
git clone https://github.com/irlnathan/brushfire-ch4-end.git
git clone https://github.com/irlnathan/brushfire-ch5-end.git
git clone https://github.com/irlnathan/brushfire-chp6-start.git
git clone https://github.com/irlnathan/brushfire-chp6-end.git
git clone https://github.com/irlnathan/brushfire-chp7-end.git
</pre>

<pre>
cd brushfire-ch3-end
(sudo) npm install
sails lift
</pre>
visiter http://localhost:1337

et recommencer avec les autres exemples.


Remarque: brushfire-chp6-start, brushfire-chp6-end, brushfire-chp7-end requièrent l'installation de [[Postgres]]

Latest revision as of 17:23, 23 August 2015

http://sailsjs.org/

Sails makes it easy to build custom, enterprise-grade Node.js apps. It is designed to emulate the familiar MVC pattern of frameworks like Ruby on Rails, but with support for the requirements of modern apps: data-driven APIs with a scalable, service-oriented architecture. It's especially good for building chat, realtime dashboards, or multiplayer games; but you can use it for any web application project - top to bottom.

Get Started

http://sailsjs.org/get-started

Installation

sudo npm -g install sails

Complément d'installation: Grunt

First project

sails new testProject
cd testProject
sails lift

visit http://localhost:1337

info:                .-..-.
info: 
info:    Sails              <|    .-..-.
info:    v0.11.0             |\
info:                       /|.\
info:                      / || \
info:                    ,'  |'  \
info:                 .-'.-==|/_--'
info:                 `--'-------' 
info:    __---___--___---___--___---___--___
info:  ____---___--___---___--___---___--___-__


Projects from Sails.js in Action

Récupérer les exemples du livre Sails.js in Action

git clone https://github.com/irlnathan/brushfire-ch3-end.git
git clone https://github.com/irlnathan/brushfire-ch4-start.git
git clone https://github.com/irlnathan/brushfire-ch4-end.git
git clone https://github.com/irlnathan/brushfire-ch5-end.git
git clone https://github.com/irlnathan/brushfire-chp6-start.git
git clone https://github.com/irlnathan/brushfire-chp6-end.git
git clone https://github.com/irlnathan/brushfire-chp7-end.git
cd brushfire-ch3-end
(sudo) npm install
sails lift

visiter http://localhost:1337

et recommencer avec les autres exemples.


Remarque: brushfire-chp6-start, brushfire-chp6-end, brushfire-chp7-end requièrent l'installation de Postgres