Angel
Search…
Installation & Setup

Getting Started

Let's get it started, ha!

Installation

Prerequisites

  • Firstly, ensure you have the Dart SDK installed.
Now, install the Angel CLI. The CLI includes several code generators and commands that will help you expedite your development cycle.
1
$ pub global activate angel_cli
Copied!
Now, let's create a sample project, called hello.
Run:
1
$ angel init hello
Copied!
This will create a folder called hello, and copy the Angel boilerplate into it. If you wanted to initialize a project within the current directory, instead of making new one, you could have run:
1
$ angel init
Copied!
Follow the instructions given. There are different types of boilerplates, but all of the server templates will generate very similarly-structured projects.
It's easy to run our server. Just type the following:
1
# Use the `--observe` flag to enable hot reloading in Angel.
2
dart --observe bin/server.dart
Copied!
And there you have it - you've created an Angel application!

Next Up...

Continue reading to learn about requests and responses.
Last modified 2yr ago