ThinkJS 2.1 Documentation
ThinkJS is the first Node.js MVC framework that supporting use full ES6/7 features to develop Node.js application. By using async/await in ES7 or */yield in ES6, ThinkJS totally resovled the hard problem optional static type. ThinkJS 2.1 has supported TypeScript, the code will be auto compiled and updated during the develop process. You can know more from here� When using ThinkJS, you can apply single environment to support different requests. You can also custom and extend them in your projects. ThinkJS supports MySQL , MongoDB and SQLite . It encapsulates many APIs of the database operations, without0 码力 | 148 页 | 1.69 MB | 1 年前3ThinkJS 2.2 Documentation
ThinkJS is the first Node.js MVC framework that supporting use full ES6/7 features to develop Node.js application. By using async/await in ES7 or */yield in ES6, ThinkJS totally resovled the hard problem optional static type. ThinkJS 2.1 has supported TypeScript, the code will be auto compiled and updated during the develop process. You can know more from here� When using ThinkJS, you can apply single environment to support different requests. You can also custom and extend them in your projects. ThinkJS supports MySQL , MongoDB and SQLite . It encapsulates many APIs of the database operations, without0 码力 | 156 页 | 2.62 MB | 1 年前3ThinkJS 2.0 Documentation
ThinkJS is the first Node.js MVC framework that supporting use full ES6/7 features to develop Node.js application. By using async/await in ES7 or */yield in ES6, ThinkJS totally resovled the hard problem async/await . Last, it can run in Node.js environment stably after Babel compiling. When using ThinkJS, you can apply single module mode, general mode or mutiple modules mode, and to develop projects environment to support different requests. You can also custom and extend them in your projects. ThinkJS supports MySQL , MongoDB and SQLite . It encapsulates many APIs of the database operations, without0 码力 | 141 页 | 1.61 MB | 1 年前3ThinkJS 2.0 中文文档
ThinkJS ����� ES6/7 ������� Node.js MVC ����� ES7 � async/await ��� ES6 �� */yield ������� Node.js ���������������������������� ����� Node.js ���������� �� ES6/7 ����������������������������� Node �� Babel ������������� ES6/7 �������������������������� � async/await �� */yield ����������� ThinkJS 2.0 Documentation ���� �� �� �� ES6/7 ������� ���������� ES6 �� class , export , let �� ES7 ���������������������������������� ThinkJS �� mysql � mongodb � sqlite �������������������������� ���� SQL ���������� SQL ������������������������� ThinkJS ����������������������������� Node.js ����������0 码力 | 238 页 | 1.87 MB | 1 年前3ThinkJS 3.0 中文文档
介绍 ThinkJS 是一款面向未来的 Node.js 开发框架,整合了很多最佳实践,让企业级开发变得更加简 单、高效。从 3.0 开始,ThinkJS 基于 koa 2.x,完全兼容 koa 里的 middleware 等插件。 同时,ThinkJS 支持 Extend 和 Adapter 等方式,方便扩展框架里的各种功能。 特性 支持 Middleware、Extend、Adapter 架构 ThinkJS 3.0 Documentation 快速入门 快速入门 借助 ThinkJS 提供的脚手架,可以快速的创建一个项目。为了可以使用更多的 ES6 特性,框架要 求 Node.js 的版本至少是 6.x ,建议使用 LTS 版本。 安装 ThinkJS 命令 $ npm install -g think-cli 安装完成后,系统中会有 thinkjs 命令(可以通过 命令(可以通过 thinkjs -v 查看版本号)。如果找不到这个命 令,请确认环境变量是否正确。 如果是从 2.x 升级,需要将之前的命令删除,然后重新安装。 创建项目 执行 thinkjs new [project_name] 来创建项目,如: $ thinkjs new demo; $ cd demo; $ npm install; $ npm start; 执行完成后,控制台下会看到类似下面的日志:0 码力 | 129 页 | 2.12 MB | 1 年前3ThinkJS 1.2 中文文档
ThinkJS 是⼀一款⾼高效、简单易⽤用的 Node.js MVC 框架。基于 ES6 Promise 开发,让异步编程更加简单、⽅方便。 ⾃自动启动服务 ⽀支持 Http、命令⾏行、WebSocket、Restful等多种⽅方式调⽤用 CBD 架构,MVC 模式 基于 Promise,异步编程更加简单 封装了 Db, Cache, Session 等常⽤用功能 开发模式下⽂文件修改后⽴立即⽣生效,⽆无需重启 开发模式下⽂文件修改后⽴立即⽣生效,⽆无需重启 ThinkJS 需要 Node.js 的版本 >=0.10.x ,可以通过 node -v 命令查看当前 node 的版本。如果未安装 node 或者版本过低,请到 Node.js 官⺴⽹网进⾏行安装或升级。 使⽤用 ThinkJS 时,假设你已经有了 Node.js 开发相关的经验。 安装 ThinkJS ⾮非常简单,通过如下的命令即可安装: 如果安装失败,可能是 安装完成后,可以通过下⾯面的命令查看 ThinkJS 的版本号: ThinkJS 1.2 Documentation 快速⼊入⻔门 介绍 特性 安装、创建项⺫⽬目 安装 ThinkJS npm install -‐g thinkjs-‐cmd Bash npm install -‐g thinkjs-‐cmd -‐-‐registry=http://r0 码力 | 104 页 | 1.29 MB | 1 年前3ThinkJS 2.2 中文文档
介绍 ThinkJS 是一款使用 ES6/7 特性全新开发的 Node.js MVC 框架,使用 ES7 中 async/await ,或者 ES6 中的 */yield 特性彻底解决了 Node.js 中异步嵌套的问题。同时吸收了国内外众多框架的设 计理念和思想,让开发 Node.js 项目更加简单、高效。 使用 ES6/7 特性来开发项目可以大大提高开发效率,是趋势所在。并且新版的 Node validateLogin(result)){ return this.fail('login fail'); } //获取到⽤用户信息后,将⽤用户信息写⼊入session ThinkJS 2.2 Documentation 快速入门 await this.session('userInfo', result); return this.success(); 是一种由微软开发的自由和开源的编程语言。它是 JavaScript 的一个超集,向这个语言 添加了可选的静态类型,在大型项目里非常有用。 ThinkJS 2.1 开始支持了创建 TypeScript 类型的项目,并且开发时会自动编译、自动更新,无需手 工编译等复杂的操作。具体请见这里。 断点调试 从 ThinkJS 2.2.0 版本开始,支持对 ES2015+ 和 TypeScript 项目的断点调试,并且报错信息也会定0 码力 | 277 页 | 3.61 MB | 1 年前3
共 7 条
- 1