/expressjs-boilerplate

expressjs-boilerplate

Primary LanguageJavaScript

expressjs-boilerplate

expressjs-boilerplate

结合 swagger gitbook

code msg  data 

development->staging->production

  • development npm run dev
  • staging npm run stag
  • production npm run prod app.get("mysqlMaster"); app.get("redisMaster"); app.get("redisSlave"); app.get("eutil"); app.get("log");

The project is generated by Expressjs.

https://github.com/grpc/grpc/tree/master/examples/node

express --view=ejs --css=less --git expressjs-boilerplate
DEBUG=myapp:* npm start

set DEBUG=myapp:* & npm start

 change directory:
     $ cd expressjs-boilerplate

   install dependencies:
     $ npm install

   run the app:
     $ DEBUG=expressjs-boilerplate:* npm start

集成 swagger


 http://localhost:3000/swagger-editor/ 
http://localhost:3000/swagger/