Sails.js: Difference between revisions
Jump to navigation
Jump to search
Line 12: | Line 12: | ||
Complément d'installation: [[Grunt]] |
Complément d'installation: [[Grunt]] |
||
=First project= |
|||
<pre> |
<pre> |
||
sails new testProject |
sails new testProject |
||
Line 20: | Line 20: | ||
visit http://localhost:1337 |
visit http://localhost:1337 |
||
=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-chp6-start |
|||
git clone https://github.com/irlnathan/brushfire-ch5-end.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 |
|||
npm install |
|||
sails lift |
|||
</pre> |
|||
visiter http://localhost:1337 |
|||
et recommencer avec les autres exemples. |
Revision as of 17:09, 23 August 2015
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
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-chp6-start git clone https://github.com/irlnathan/brushfire-ch5-end.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 npm install sails lift
visiter http://localhost:1337
et recommencer avec les autres exemples.