天天看点

sails项目安装sails项目安装

sails项目安装

安装过程:

  • 下载并安装node.js
  • 安装sails
  • 创建自己的应用
  • *查看sails应用程序

步骤详情

node下载

  1. 安装sails
    npm install sails -g(看到

    info: Created a new Sails app ``项目名称``!

    即成功)
  2. 要生成一个新的应用程序,只需cd进入你想要的目录,然后输入:
    sails new 项目名称
  3. 查看sails应用程序
    cd 项目名称 sails lift
  4. 找到本地项目并启动项目
    node app.js
  5. 本地浏览器查看 localhost:1337
    localhost:1337