Awesome
A Demo Of Phiz Framework
Prepare
-
install sdk
npm install -g phiz
-
download this demo
cd path/to/workspace git clone https://github.com/fouber/phiz-demo.git cd phiz-demo
-
webserver
if you got [php-cgi] support in your system, you can launch a built-in webserver of phiz-sdk by the command below:
phiz server start --no-rewrite
otherwise, you need a webserver which can run php.
-
phiz-lib
if you have launched phiz-sdk built-in server, then use the command below to install phiz-lib to phiz server
www
directory:phiz server install phiz-lib
otherwise, use git clone:
cd path/to/your/webserver/htdocs git clone https://github.com/fouber/phiz.git
Run Demo
-
release project
if you have launched phiz-sdk built-in server, then use the command below to compile and release the project to phiz server
www
directory:cd path/to/workspace/phiz-demo phiz release -r common phiz release -r foo phiz release -r foo-bar
otherwise, use
-d <path>
option of phiz release command to specify release path:cd path/to/workspace/phiz-demo phiz release -r common -d path/to/your/webserver/htdocs phiz release -r foo -d path/to/your/webserver/htdocs phiz release -r foo-bar -d path/to/your/webserver/htdocs
-
browser project
view it at [http://127.0.0.1:8080/index.php]