GithubHelp home page GithubHelp logo

chenguzhen87 / koa-restful Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tyler2350/flask-restful-demo

0.0 1.0 0.0 38.37 MB

基于koa2 orm sequelize的restful框架,使用jwt认证,可以使用postman测试学习

Home Page: http://www.ljphilp.cn

JavaScript 100.00%

koa-restful's Introduction

koa restful

A koa restful project

development environment

# install dependencies
npm install
# start server
node ./app.js

## production environment

# install pm2
npm npm install -g pm2
# set linux env
export JWT_SECRET=salt

# start server
pm2 start app.js --name koa-restful -i 1
# --name                 # 命名进程
# -i                     # 启动进程数
# pm2 list               # 显示所有进程状态
# pm2 kill                      # 杀掉所有pm2进程并释放资源,包含pm2自身,会释放端口

更多pm2用法请参考https://bitcoin-on-nodejs.ebookchain.org/4-%E5%BC%80%E5%8F%91%E5%AE%9E%E8%B7%B5/5-%E9%83%A8%E7%BD%B2/2-%E7%94%9F%E4%BA%A7%E7%8E%AF%E5%A2%83%E4%B8%8B%E7%9A%84pm2%E9%83%A8%E7%BD%B2.html

koa-restful's People

Watchers

James Cloos 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.