webdart

a simple server-side web framework


License
Unlicense

Documentation

web.dart

A simple server-side web framework.

Try to provide the same programming experience as web.py and jinja2. This project is still in primitive stage.

Usage & Demo

Development Environment: Ubuntu 13.10.

  1. Install Dart.

  2. git clone this repository

$ git clone https://github.com/siongui/webdart.git
  1. Enter the repository directory:
$ cd webdart

Use your editor (vim for example) to edit the second line of the Makefile:

DART_DIR=../dart

DART_DIR should be the path of your unzipped Dart directory.

  1. The sample code is under example directory, which follows Package layout conventions. There are two examples which show how to use web.dart:

    • basic usage (source code at example/basic_usage/): use make to run this example.

      $ make example_basic_usage

      Then Open your browser to visit http://localhost:8080/ (Dartium is not needed to run this example).

    • snake game (source code at example/snake/): use make to run this example.

      $ make

      After make command is issued, the server will start running and Dartium will automatically being started to run the Dart snake game. (Dartium is needed to run this example).