Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update without-the-boilerplate.md #10

Open
wants to merge 1 commit into
base: 2.x
Choose a base branch
from
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