Installation

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

Now, let’s create a sample project, called hello.

Run:

  1. $ angel init hello

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

Follow the instructions given. There are different types of boilerplates, but all of the servertemplates 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

And there you have it - you’ve created an Angel application!

Next Up…

Continue reading to learn about requests and responses.