Angel3 CLI Setup

Installation

  • Download and install Dart SDK.
  • Install Angel3 CLI. The CLI includes several code generators and commands that will help Angel3 development.
1
pub global activate angel3_cli
Copied!

Creating a New Project

  • Create a sample project, called hello, run:
1
angel3 init hello
Copied!
This will create a folder called hello.
  • If you prefer to initialize a project within the current directory, run:
1
angel3 init
Copied!
  • Follow the instructions given to complete initializing the new project. Choose from one of the available Angel3 templates to best represents what you would like your backend server to do. A well structured project will be generated.

Starting Angel3 Server

  • Running the server in development mode:
1
# Use the `--observe` flag to enable hot reloading in Angel3.
2
dart --observe bin/dev.dart
Copied!
  • Running the server in production mode:
1
dart bin/prod.dart
Copied!
  • And there you have it - you've created an Angel3 backend server!

Next Up

Continue reading to learn about Basic Routing.