Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions guides/without-the-boilerplate.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ It's very easy to setup a bare-bones Angel server.
Any Dart project needs a project file, called `pubspec.yaml`. This file almost always contains a `dependencies` section, where you will install the Angel framework libraries.

```yaml
name: hello_angel
dependencies:
angel_framework: ^2.0.0
```
Expand All @@ -16,7 +17,6 @@ Next, run `pub get` on the command line, or in your IDE if it has Dart support.
Next, create a file, `bin/main.dart`. Put this code in it:

```dart
import 'dart:io';
import 'package:angel_framework/angel_framework.dart';
import 'package:angel_framework/http.dart';

Expand All @@ -26,7 +26,7 @@ main() async {

app.get("/", (req, res) => "Hello, world!");

var server = await http.startServer();
await http.startServer('localhost', 3000);
print("Angel server listening at ${http.uri}");
}
```
Expand Down