Skip to content
This repository has been archived by the owner on Jul 18, 2023. It is now read-only.

DynamicWebPage

gasolin edited this page Jun 7, 2015 · 3 revisions

Get webapplate

Read get webapplate to download latest version of webapplate.

Setup

Read setup webapplate to install essential development tools.

You could change server port or debug stat in config.js.

Change isDynamic property to true in config.js. So server.js file will enable dynamic webpage features.

Development

Then, you could run node server.js command to start the dynamic web server. Open your browser and type http://localhost:8000 in URL bar, you will see the welcome page.

Imgur

Now you can follow express documentation to do any dynamic web development.

webapplate pre-integrate the Django-like template - swig syntax to render templates from /views folder. You could change to other template in server.js.

The static files are located in /public folder and could be accessed via http://localhost:8000/public url. You could check related file structure and use some of these features on your project:

Deployment

Read dynamic hosting for host your dynamic web page.

More

Want to deploy your dynamic web app to Firefox OS marketplace? check HostedWebapp.

Clone this wiki locally