Angel
2.x
2.x
  • Introduction
  • Migration from Angel 1.1.x
    • Rationale - Why a new Version?
    • Framework Changelog
    • 2.0.0 Migration Guide
  • ORM
    • About
    • Basic Functionality
    • Relations
    • Migrations
    • NoSQL
    • PostgreSQL
  • Guides
    • Getting Started
    • Basic Routing
    • Dependency Injection Patterns
    • Installation & Setup
    • Without the Boilerplate
    • Requests & Responses
    • Dependency Injection
    • Basic Routing
    • Request Lifecycle
    • Middleware
    • Controllers
    • Parsing Request Bodies
    • Using Plug-ins
    • Rendering Views
    • Service Basics
    • REST Client
    • Testing
    • Error Handling
    • Pattern Matching and Parameter
    • Command Line
    • Writing a Plugin
  • Example Projects
  • YouTube Tutorials
  • Ecosystem
  • Packages
    • Authentication
    • CORS
    • Database-Agnostic Relations
    • Configuration
    • Database Adapters
      • MongoDB
      • RethinkDB
      • JSON File-based
      • ORM
    • Front-end
      • Mustache Templates
      • Jael template engine
        • Github
        • Basics
        • Custom Elements
        • Strict Resolution
        • Directive: declare
        • Directive: for-each
        • Directive: extend
        • Directive: if
        • Directive: include
        • Directive: switch
      • compiled_mustache-based engine
      • html_builder-based engine
      • Markdown template engine
      • Using Angel with Angular
    • Hot Reloading
    • Pagination
    • Polling
    • Production Utilities
    • Reverse Proxy
    • Router
    • Serialization
    • Service Seeder
    • Static Files
    • Security
    • Server-sent Events
    • shelf Integration
    • Task Engine
    • User Agents
    • Validation
    • Websockets
Powered by GitBook
On this page
  • Getting Started
  • Installation
  • Next Up...
  1. Guides

Installation & Setup

PreviousBasic RoutingNextWithout the Boilerplate

Last updated 6 years ago

Getting Started

Let's get it started, ha!

Installation

Prerequisites

  • Firstly, ensure you have the installed.

Now, install the . 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 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!

Next Up...

Continue reading to learn about .

requests and responses
Dart SDK
Angel CLI
Angel boilerplate
Getting Started
Installation
Prerequisites
Next Up...