Install Angel3 CLI. The CLI includes several code generators and commands that will help Angel3 development.
pub global activate angel3_cli
Creating a New Project
Create a sample project, called hello, run:
angel3 init hello
This will create a folder called hello.
If you prefer to initialize a project within the current directory, run:
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:
# Use the `--observe` flag to enable hot reloading in Angel3.
dart --observe bin/dev.dart
Running the server in production mode:
And there you have it - you've created an Angel3 backend server!