Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fouber/phiz-demo
a demo of phiz template engine
https://github.com/fouber/phiz-demo
Last synced: 5 days ago
JSON representation
a demo of phiz template engine
- Host: GitHub
- URL: https://github.com/fouber/phiz-demo
- Owner: fouber
- Created: 2013-10-20T13:40:08.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2013-10-28T10:06:05.000Z (about 11 years ago)
- Last Synced: 2024-05-13T05:09:44.422Z (6 months ago)
- Language: CSS
- Size: 371 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
A Demo Of [Phiz](https://github.com/fouber/phiz) Framework
========## Prepare
1. install [sdk](https://github.com/fouber/phiz-tool)
```bash
npm install -g phiz
```1. download this demo
```bash
cd path/to/workspace
git clone https://github.com/fouber/phiz-demo.git
cd phiz-demo
```1. webserver
if you got [php-cgi] support in your system, you can launch a built-in webserver of [phiz-sdk](ttps://github.com/fouber/phiz-tool) by the command below:
```bash
phiz server start --no-rewrite
```
otherwise, you need a webserver which can run php.1. phiz-lib
if you have launched phiz-sdk built-in server, then use the command below to install [phiz-lib](https://github.com/fouber/phiz) to phiz server ``www`` directory:
```bash
phiz server install phiz-lib
```
otherwise, use git clone:
```bash
cd path/to/your/webserver/htdocs
git clone https://github.com/fouber/phiz.git
```## Run Demo
1. 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:
```bash
cd path/to/workspace/phiz-demo
phiz release -r common
phiz release -r foo
phiz release -r foo-bar
```
otherwise, use ``-d `` option of phiz release command to specify release path:
```bash
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
```1. browser project
view it at [http://127.0.0.1:8080/index.php]
## Learn More
* [phiz](https://github.com/fouber/phiz)
* [phiz-sdk](https://github.com/fouber/phiz-tool)