Installation & Setup
Let's get it started, ha!
Now, install the Angel CLI. The CLI includes several code generators and commands that will help you expedite your development cycle.
$ pub global activate angel_cli
Now, let's create a sample project, called
hello
.Run:
$ 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:$ angel init
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:
# Use the `--observe` flag to enable hot reloading in Angel.
dart --observe bin/server.dart
And there you have it - you've created an Angel application!
Last modified 4yr ago