Code Monkey home page Code Monkey logo

think-ts-pro's Introduction


一个企业级的NodeJS应用框架

  • 💪 ORM**用对象的方式CRUD
  • 🔥 应用级提炼封装更贴近业务场景

ThinkTS框架(案例版)

ThinkTS 是一个企业级的NodeJS应用框架,整合了各种常用SDK以及企业级常用的技术方案,为减少了开发人员的学习成本,提高团队的开发效率而生。

目录结构

.
├── app
│   ├── controller              // 控制器目录
│   │   └── hello.ts
│   ├── middleware              // 路由中间件目录
│   │   └── checkLogin.ts
│   ├── service                 // 模型目录
│   │   └── hello.ts
│   ├── validate                // 验证器目录
│   │   └── hello.ts
│   └── views                   // 视图目录
│       └── index.vue
├── build                       // 编译vue的目录
│   ├── index                   // 页面模块目录
│   └── build.ts                // 编译脚本
├── dist                        // 打包目录
├── cert                        // 证书文件目录
│   ├── ali_private_key.pem
│   ├── wx_private_key.pem
│   └── wx_public_key.pem
├── config                      // 配置文件目录
│   ├── alicloud.ts
│   ├── app.ts
│   ├── database.ts
│   ├── elasticsearch.ts
│   ├── mongodb.ts
│   ├── redis.ts
│   ├── wx.ts
│   └── pm2.json               // pm2配置文件
├── logs                       // 日志输出目录
│   ├── all-logs.log
│   └── log.2021-04-29.log
├── route                      // 路由配置目录
│   └── hello.ts
├── utils                      // 扩展工具函数目录
│   └── index.ts
├── websocket                  // websocket长连实现目录
│   └── ws.ts
├── public                     // 静态资源目录
│   ├── css                    // 样式目录
│   ├── js                     // 脚本目录
│   ├── icon.ico
│   └── index.html
├── index.ts                   // 项目入口文件
├── thinkts.d.ts               // 类型定义文件
├── package.json               // 项目配置文件
├── tsconfig.json              // TS配置文件
├── vite.config.ts             // Vite配置文件
└── README.md                  // 项目说明文件

安装

通过脚手架安装

npm install think-ts-cli -g

think-ts-cli init demoApp

直接克隆

git clone https://github.com/zy598586050/think-ts.git

安装依赖

npm install

启动项目

// 开发环境
npm run dev

// 线上环境
npm run start

生态

说明

此项目为案例版,带有众多技术方案的演示案例,如需查看无业务逻辑的基础框架,请移步 这里

架构

执照

ThinkTS已申请软件著作,可在**版权保护中心中查看 CPCC.

think-ts-pro's People

Contributors

zy598586050 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.