The Web framework beyond your dreams

Use the full ES6/7 features to develop Web applications

Getting Started

Check out the latest developments in the GitHub repo

Use ES6/7 features to develop Node.js applications

//user controller, home/controller/user.js
export default class extends think.controller.base {
  //login action
  async loginAction(){
      return this.display();
    //data is validated in logic
    let data =;
    let md5 = think.md5('think_' + data.pwd);
    let result = await this.model('user').where({name:, pwd: md5}).find();
      return'login fail');
    //set userInfo to session
    await this.session('userInfo', result);
    return this.success();