All Projects → Vibing → ts-koa-starter

Vibing / ts-koa-starter

Licence: other
typescript+koa起手式(简单的空环境)

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to ts-koa-starter

Smarthome
💡 智能电器管理综合系统
Stars: ✭ 33 (-64.13%)
Mutual labels:  nodemon, pm2, koa2
Vue Chat
📲 A web chat application. Vue + node(koa2) + Mysql + socket.io
Stars: ✭ 617 (+570.65%)
Mutual labels:  pm2, koa2
Koa Rest Api Boilerplate
💯 Boilerplate for Node.js Koa RESTful API application with Docker, Swagger, Jest, CodeCov and CircleCI
Stars: ✭ 420 (+356.52%)
Mutual labels:  pm2, koa2
Light Push
轻量级推送服务和实时在线监控平台,同时用于开发即时通信系统,基于node的socket.io,支持web、android、ios客户端,支持移动端离线推送,可进行分布式部署
Stars: ✭ 128 (+39.13%)
Mutual labels:  pm2, koa2
One Sys
聚合koa2+pm2+vue-cli+element+axios的前后端一体开发脚手架
Stars: ✭ 102 (+10.87%)
Mutual labels:  pm2, koa2
login push
vue+koa2+jwt实现单点登录 + todolist增删改查
Stars: ✭ 20 (-78.26%)
Mutual labels:  pm2, koa2
Eaglet
最简單直接的 Koa2 的脚手架
Stars: ✭ 118 (+28.26%)
Mutual labels:  pm2, koa2
koa2-example-app
An app that is built using koa2 and async/await
Stars: ✭ 85 (-7.61%)
Mutual labels:  pm2, koa2
node-mysql
Node with mysql boilerplate
Stars: ✭ 72 (-21.74%)
Mutual labels:  nodemon, pm2
ahobsu-node-backend
🌈 MOTI ! Make Own True Identity ⭐️ 유니큐와 유초코파이 노드로 탈주하다😎
Stars: ✭ 16 (-82.61%)
Mutual labels:  nodemon, pm2
Express Starter
🚚 A boilerplate for Node.js, Express, Mongoose, Heroku, Atlas, Nodemon, PM2, and Babel. REST / GraphQL API Server | PaaS | SaaS | CI/CD | Jest | Supertest | Docker | MongoDB | PostgreSQL | Sequelize | Lodash | RxJS | JWT | Passport | WebSocket | Redis | CircleCI | Apollo | DevSecOps | Microservices | Backend Starter Kit | ES6
Stars: ✭ 353 (+283.7%)
Mutual labels:  nodemon, pm2
React Ssr
React 服务端渲染(SSR),react + redux + koa2 + sequelize + mysql全栈项目(Full Stack)
Stars: ✭ 205 (+122.83%)
Mutual labels:  pm2, koa2
Js Stack From Scratch
🛠️⚡ Step-by-step tutorial to build a modern JavaScript stack.
Stars: ✭ 18,814 (+20350%)
Mutual labels:  nodemon, pm2
Node Typescript Koa Rest
REST API boilerplate using NodeJS and KOA2, typescript. Logging and JWT as middlewares. TypeORM with class-validator, SQL CRUD. Docker included. Swagger docs, actions CI and valuable README
Stars: ✭ 739 (+703.26%)
Mutual labels:  nodemon, koa2
whatsapp-bot
Piyobot adalah whatsapp bot pintar
Stars: ✭ 124 (+34.78%)
Mutual labels:  pm2
amala
Lightweight, Typescript REST library powered by Koa 2+. Use classes and decorators to define your API. Inject arguments from ctx. Supports API versioning. Future support for OpenAPI3. Works with koa-router.
Stars: ✭ 41 (-55.43%)
Mutual labels:  koa2
teaching-nodejs-expressjs-framework-spring-2019-2020
Complete Node-Express Application
Stars: ✭ 16 (-82.61%)
Mutual labels:  nodemon
koa-practice
koa + RESTful + 中间件模式开发的后端程序,基本可以满足一般的业务需求,有需要的朋友可以查看
Stars: ✭ 13 (-85.87%)
Mutual labels:  koa2
koahub-cli
KoaHub CLI -- KoaHub.js的开发工具,自动babel编译 ES6/7(Generator Function, Class, Async & Await)并且文件修改后自动重启。
Stars: ✭ 16 (-82.61%)
Mutual labels:  koa2
Registration-and-Login-using-MERN-stack
Simple Registration and Login component with MERN stack
Stars: ✭ 210 (+128.26%)
Mutual labels:  nodemon

本人平常喜欢用nodejs瞎 JB 写写东西,但是每次都要创建项目、安装依赖等等前戏工作,这让我很烦。于是乎写了个空的起手式,这样以后写东西直接 clone 下来就行了。

我觉得跟我一样的人应该很多,所以也把这个小东西分享给大家。

ts-koa-starter

这是一个koa+typescript的起手式(简单的空环境)

如果你想再加个typeorm来玩玩数据库,请 clone 下来后切换到bt-ts-koa-typeorm分支

ps:typeorm是一个非常好的数据库 ORM,如果你没玩过,请务必尝试一下 💪💪💪

项目结构

.
├── src
│   ├── controller      //controller层
│   ├── service         //service层
│   ├── routes.ts       //路由
│   └── index.ts        //项目入口index.js
├── ecosystem.config.js //pm2配置
├── nodemon.json        //nodemon配置
├── package.json
└── tsconfig.json

使用

打包

  • yarn build 或 npm run build

生产环境启动

  • 生产环境使用 pm2 启动 可以达到负载均衡 执行:yarn pro 或 npm run pro (生产环境端口默认:8080)

友情链接

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].