Skip to content

Commit 067bcf2

Browse files
committed
add getting-start
1 parent 3961283 commit 067bcf2

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

README.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
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?
@@ -30,7 +31,7 @@
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
4142
yarn install
4243

4344
docker-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
7073
Build a reusable environment, whether it is a production environment or a development environment
7174

0 commit comments

Comments
 (0)