All Projects → atzcl → z

atzcl / z

Licence: other
基于 MidwayJS(EggJS) + TypeScript 的多模块应用 [ NodeJS 版 ]

Programming Languages

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

Projects that are alternatives of or similar to z

mall-by-react
一个react商城客户端和egg服务端
Stars: ✭ 22 (-81.97%)
Mutual labels:  sequelize, egg, midway
Pandora
A Manageable, Measurable and Traceable Node.js Application Manager represented by Alibaba powered by TypeScript
Stars: ✭ 3,084 (+2427.87%)
Mutual labels:  midway, midwayjs
Egg Commerce
Stars: ✭ 264 (+116.39%)
Mutual labels:  sequelize, egg
Egg 24time
A Twitter-like news and social server for Egg. 微信小程序社区全栈解决方案
Stars: ✭ 493 (+304.1%)
Mutual labels:  sequelize, egg
egg-nideshop
使用egg框架重写的nideshop后台
Stars: ✭ 49 (-59.84%)
Mutual labels:  sequelize, egg
Egg Sequelize
Sequelize for Egg.js
Stars: ✭ 540 (+342.62%)
Mutual labels:  sequelize, egg
react-ant-admin-api
专为 react-ant-admin 开发的后端API,完善的权限路由系统,使用 eggjs、ts、mysql开发
Stars: ✭ 52 (-57.38%)
Mutual labels:  sequelize
benchmark
benchmark for egg
Stars: ✭ 19 (-84.43%)
Mutual labels:  egg
egg-grpc
grpc plugin for egg
Stars: ✭ 79 (-35.25%)
Mutual labels:  egg
chat-webapp
一个基于eggjs与react全家桶的移动端webapp
Stars: ✭ 21 (-82.79%)
Mutual labels:  egg
doc
Sequelize Documentation
Stars: ✭ 32 (-73.77%)
Mutual labels:  sequelize
chanyeong
👨‍💻 chanyeong's portfolio and blog webpage
Stars: ✭ 39 (-68.03%)
Mutual labels:  sequelize
sequelize-mig
Sequelize migration generator and es6 init tool (Planned)
Stars: ✭ 54 (-55.74%)
Mutual labels:  sequelize
egg-aop
AOP plugin for eggjs, add DI, AOP support.
Stars: ✭ 44 (-63.93%)
Mutual labels:  egg
wildebeest
Database migration for Sequelize.
Stars: ✭ 13 (-89.34%)
Mutual labels:  sequelize
egg-sentry
Sentry Plugin For Egg.js
Stars: ✭ 18 (-85.25%)
Mutual labels:  egg
template-server-nodejs
No description or website provided.
Stars: ✭ 20 (-83.61%)
Mutual labels:  sequelize
auth-quickstart
Authentication Quickstart with Express, Passport and Sequelize
Stars: ✭ 49 (-59.84%)
Mutual labels:  sequelize
StackQuest
A multiplayer and team-based action/shooter game.
Stars: ✭ 21 (-82.79%)
Mutual labels:  sequelize
midwayjs-crud
基于 Typescript+MidwayJs+Nacos 的微服务开发架构
Stars: ✭ 45 (-63.11%)
Mutual labels:  midwayjs

z

基于以下技术构建

  • Node.js & MidwayJS(EggJS)
  • TypeScript
  • Redis
  • MySQL 5.7 以上
  • Sequelize
  • TypeORM 底层还在进行大重构,暂时不适宜用于生产环境
  • Socket.io
  • GraphQL
  • ...

注意事项

因为 midwayjs 使用了 IoC 容器进行依赖解耦,所以开发方式会跟 eggjs 有些不一样,建议先阅读 midwayjs 官方文档Injection 文档

验证码模块使用了 node-canvas 库, 所以请先根据 node-canvas 文档 安装好相应的依赖

模块开发目录

开发目录为:src/app/modules/*

快速开始

请确保已经拉取项目到本地环境,并且安装配置好 Node/yarn

1、安装依赖

yarn

2、copy config 配置

cp src/config/config.example src/config/config.default.ts

然后修改对应的配置信息

3、执行数据库迁移

sequelize-cli 的数据库迁移并不好用,主要是它没办法定义多目录的 migration, 所以当前使用的是 typeorm 的数据库迁移功能

遇到出现 UnhandledPromiseRejectionWarning: QueryRunnerAlreadyReleasedError: Query runner already released. Cannot run queries anymore. 错误,请无需担心,这是 typeorm 的一个 bug, 不会影响迁移结果

yarn typeorm migration:run

4、运行

yarn dev

部署

更多请看 midway 部署

使用 docker 详见 docker 手册跟 Dockerfile

使用 pm2

pm2 start ecosystem.config.js

使用 egg-scripts

yarn start

辅助开发的 Cli 命令

对应代码目录: src/console

// 待补充
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].