Files
tldr/pages.zh/common/sails.md

24 lines
385 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Sails
> 一个基于 Node.js 的实时企业级 MVC 框架。
> 更多信息请访问:<https://sailsjs.com>。
- 启动 Sails
`sails lift`
- 创建新的 Sails 项目:
`sails new {{projectName}}`
- 生成 Sails API
`sails generate {{name}}`
- 生成 Sails 控制器:
`sails generate controller {{name}}`
- 生成 Sails 模型:
`sails generate model {{name}}`