Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Lightweight Dart web server. Features: request routing, filtering, template engine, WebSocket, MVC design pattern, and file-based static resources.

branch: master

1.2.0

latest commit 40f09a247a
Tom Yeh tomyeh authored
Octocat-spinner-32 .settings minor July 30, 2013
Octocat-spinner-32 bin upgrade to the last Dart SDK October 29, 2013
Octocat-spinner-32 example minor November 11, 2013
Octocat-spinner-32 lib 1.2.0 March 17, 2014
Octocat-spinner-32 test #74: StreamServer.onError shall catch all uncaught errors March 13, 2014
Octocat-spinner-32 tool #70: Server.onIdle() supported February 13, 2014
Octocat-spinner-32 .gitattributes .gitattributes added to use LF for EOL December 29, 2013
Octocat-spinner-32 .gitignore minor July 30, 2013
Octocat-spinner-32 CHANGES.md 1.2.0 March 17, 2014
Octocat-spinner-32 LICENSE initial January 10, 2013
Octocat-spinner-32 README.md upgrade to the last Dart SDK October 29, 2013
Octocat-spinner-32 pubspec.yaml 1.2.0 March 17, 2014
README.md

Stream

Stream is a Dart web server supporting request routing, filtering, template engine, WebSocket, MVC design pattern and file-based static resources.

Stream is distributed under an Apache 2.0 License.

Build Status

Installation

Add this to your pubspec.yaml (or create it):

dependencies:
  stream:

Then run the Pub Package Manager (comes with the Dart SDK):

pub install

Usage

Compile RSP (Rikulo Stream Page) to dart files

There are two ways to compile RSP files into dart files: automatic building with Dart Editor or manual compiling.

RSP is a template technology allowing developers to create dynamically generated web pages based on HTML, XML or other document types (such as this and this). Please refer to here for more information.

Build with Dart Editor

To compile your RSP files automatically, you just need to add a build.dart file in the root directory of your project, with the following content:

import 'package:stream/rspc.dart';
void main(List<String> arguments) {
  build(arguments);
}

With this build.dart script, whenever your RSP is modified, it will be re-compiled.

Compile Manually

To compile a RSP file manually, run rspc (RSP compiler) to compile it into the dart file with command line interface as follows:

dart bin/rspc.dart your-rsp-file(s)

A dart file is generated for each RSP file you gave.

Notes to Contributors

Fork Stream

If you'd like to contribute back to the core, you can fork this repository and send us a pull request, when it is ready.

Please be aware that one of Stream's design goals is to keep the sphere of API as neat and consistency as possible. Strong enhancement always demands greater consensus.

If you are new to Git or GitHub, please read this guide first.

Something went wrong with that request. Please try again.