项目使用 Meteor 1.5 ,写的一个记账的小 Demo,目的是为了让新手入门 Meteor 的一个小项目,包含一些基本使用功能, 中文文档在👇
The project uses meteor 1.5 to write a small demo for accounting. The purpose is to let novices get started with a small project of meteor, including some basic functions.
Main contents
Module
-
template
-
Life cycle
-
Nesting
-
Rendering
-
Events
-
Routing
-
Account system
-
Landing
-
Log out
-
Registration
-
Database addition, deletion, modification and query
-
Front end interaction
-
API call
-
Data validation
-
Data permission
Installation and operation
OSX / Linux Installation
curl https://install.meteor.com/ | sh
Run, on the way, if you lack plug-ins, the terminal will prompt statements, according to do well
meteor run
File directory
-. meteor contains the meteor framework
-Client front end
-
View
-
js
-
CSS
-
HTML
-
Model model
-
node_ modules
-
Public pictures
-
Router routing
-
Server server API
Details
Local in the file. Meter will generate a cache file, which occupies the hard disk and can be deleted.
Links
GitHub address: https://github.com/liangtongzhuo/tkzd
Conclusion
The company uses meteor to write this project to speed up the familiarity with the company's project. If you have any questions, you can issue
主要内容
模块
- template
- 生命周期
- 嵌套
- 渲染
- 事件
- 路由
- 账号系统
- 登陆
- 登出
- 注册
- 数据库增删改查
- 前后端交互
- API 调用
- 数据验证
- 数据权限
安装与运行
OSX / LINUX 安装
curl https://install.meteor.com/ | sh
运行,途中如果你缺少插件,终端会提示语句,按照做就好
meteor run
文件目录
- .meteor 里面是 Meteor 框架的东西
- client 前端
- View
- js
- CSS
- HTML
- View
- model 模型
- node_modules
- public 放图片
- router 路由
- server 服务器 API
细节问题
文件 .meteor 里的 local 会生成缓存文件,占硬盘,可以删除。
链接
GitHub 地址:https://github.com/liangtongzhuo/tkzd
结束语
本身公司用 Meteor 所以写了这个项目来加速熟悉公司项目,如有疑问可以 issues