Skip to content

可视化后台的后端服务, 采用 TS + Eggjs + Mongoose 开发

Notifications You must be signed in to change notification settings

JXtreehouse/admin-server

 
 

Repository files navigation

hackernews-async-ts

Hacker News showcase using typescript && egg

快速开始

如何开发

npm i
npm run dev
# open http://localhost:7001/

不要再开发环境执行 tsc 编译,如果已经执行了,你需要执行 npm run cleannpm run dev 之前。

部署

npm run tsc
npm start

在自己服务器上

# 第一次部署
git clone https://github.com/zhongxia245/admin-server.git
cd admin-server
npm i
npm run tsc
pm2 start pm2.json

# 更新代码
sh deploy.sh

Npm Scripts

  • Use npm run lint to check code style
  • Use npm test to run unit test
  • se npm run clean to clean compiled js at development mode once

环境要求

  • Node.js 8.x
  • Typescript 2.8+

About

可视化后台的后端服务, 采用 TS + Eggjs + Mongoose 开发

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 96.2%
  • JavaScript 2.3%
  • Shell 1.5%