README
pon-demo-site
Demo of web site using pon
Requirements
Preparing
Install CLI packages if you have not
$ npm i pon pm2 -g
Then, install dependencies and build the project
$ npm install
$ pon prepare
Development
Starting dev server
# Start server and watch files to compile
pon d
Production
# Start app on production
pon production
Tips
Managing Docker Infra
To show available commands,
pon -l | grep docker
Restarting Server
pon stop
pon start
Or, just
pon restart
Project Structure
Directory structure of this project
| Directory Path | Description |
|---|---|
| assets | Static file directory |
| bin | Executable files |
| client | Client side scripts |
| client/client | RPC Client |
| client/scenes | Client logic without ui |
| client/shim | Generated shim files |
| client/store | Client side data store |
| client/test | Client tests |
| client/ui | User interfaces |
| conf | Configuration of project |
| doc | Documents |
| doc/guides | Guides for README |
| misc | Misc scripts |
| public | Public directory to serve static files. Auto-generated |
| server | Server side files |
| server/controllers | Controller classes to handle RPC |
| server/db | Database modules |
| server/env | Env dependant variables |
| server/server | HTTP Server module |
| server/test | Server tests |
| test | Project tests |
| tmp | Temporary files. Can be deleted anytime. |
| var | Var files |
License
This software is released under the Apache-2.0 License.