Difference between revisions of "Sails.js"
Jump to navigation
Jump to search
Line 20: | Line 20: | ||
visit http://localhost:1337 |
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]= |
=Projects from [http://www.manning.com/mcneil/ Sails.js in Action]= |
Latest revision as of 19:23, 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
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