Skip to content

Latest commit

 

History

History
26 lines (15 loc) · 498 Bytes

File metadata and controls

26 lines (15 loc) · 498 Bytes

入门教程

安装

使用命令行工具安装最新稳定版:

sudo npm -g install sails

Windows 上(或者在有HomebrewMac OS系统上),不需要使用sudo:

npm install -g sails

创建sails新工程

创建新应用:

sails new testProject

启动服务器:

cd testProject
sails lift

这时,访问 http://localhost:1337/ 会看到默认主页。

现在,可以让Sails做点更酷的事情了。