1. Installation
⑴ The compressed package is Https://github.com/idevz/vanilla download.
⑵ put the extracted files / Vanilla-master put it in the /opt/ directory. and modify the properties of the entire folder:
chmod – R 755 Vanilla-master
⑶
./configure--prefix=/ opt /vanilla--openresty-path=/ opt /openresty
Make install
2. Use of vanilla
⑴ Create a application Framework
CD Vanilla
Executed under the /opt/vanilla directory:Vanilla new app_name, such as vanilla new Test
⑵ start Vanilla
Vanilla start--trace
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/82/3B/wKioL1dOvVGwU-NDAABY-lVF-Lw051.png "title=" Picture 1.png "alt=" Wkiol1dovvgwu-ndaaby-lvf-lw051.png "/>
3. accessing the Web program
because the Vanilla app in Development Was successfully started on port 9110. so access Web the port number is 9110 .
For example: http://192.168.2.200:9110/
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/82/3C/wKiom1dOvHOS_LxjAAC_KO2wUmo258.png "title=" Picture 2.png "alt=" Wkiom1dovhos_lxjaac_ko2wumo258.png "/>
Vanilla Chinese Manual
Https://idevz.gitbooks.io/vanilla-zh/content/overview.html
This article is from the "Programming Art" blog, so be sure to keep this source http://itsart.blog.51cto.com/1005243/1785282
Introduction to developing RESTFULAPI Series 4:vanilla Vanilla framework under openresty+yii2.0