File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414- [x] Redis
1515- [x] MySQL
1616- [x] Node.js 7.x
17- - [x] Nginx(Power By Openresty)
17+ - [x] Nginx with LuaJit
18+ - [x] Nodemon
1819
1920
2021## How to use it?
3031
3132> Windows and Mac users only need to install Docker
3233
33- #### Setup
34+ #### Getting started
3435
3536``` bash
3637
@@ -41,10 +42,16 @@ cd docker-node.js
4142yarn install
4243
4344docker-compose up -d
45+ ```
46+ Now,you can open http://127.0.0.1:3000/ in browser
47+
48+ ###### Try edit the app.js
4449
50+ ``` js
51+ ctx .body = ` Hello World` ; // in koa2 middleware
4552```
53+ > The Node.js will automatically restart,Through the module provided by the [ nodemon] ( https://github.com/remy/nodemon ) implementation
4654
47- Now,you can open http://127.0.0.1:3000/ in browser
4855
4956#### Configure
5057
@@ -62,10 +69,6 @@ You can find the $software data file in `./docker/$software/Data/`
6269- [ ] Write usage documentation
6370- [ ] Test on Windows
6471
65- ##### Why do need Lua module?
66-
67- > The nginx configuration file uses environment variables
68-
6972## Goal
7073Build a reusable environment, whether it is a production environment or a development environment
7174
You can’t perform that action at this time.
0 commit comments