Installation

Get Azu up and running on your system with this comprehensive installation guide.

Prerequisites

Before installing Azu, ensure you have the following prerequisites:

Crystal Language

Azu requires Crystal 0.35.0 or higher. Install Crystal first:

macOS

# Using Homebrew (recommended)
brew install crystal-lang

# Verify installation
crystal version
# Should output: Crystal 1.x.x

Linux (Ubuntu/Debian)

# Add Crystal repository
curl -fsSL https://crystal-lang.org/install.sh | sudo bash

# Install Crystal
sudo apt-get install crystal

# Verify installation
crystal version

Linux (CentOS/RHEL/Fedora)

Windows

System Requirements

  • Memory: Minimum 512MB RAM (2GB+ recommended)

  • Storage: 100MB free space for Crystal + dependencies

  • Network: Internet connection for downloading shards

Development Tools (Optional)

For the best development experience, install these tools:

Installing Azu

Create a new Crystal project and add Azu as a dependency:

Edit your shard.yml:

Install dependencies:

Method 2: Add to Existing Project

If you have an existing Crystal project:

Add to your shard.yml:

Install:

Optional: Database Support with CQL

For database-backed applications, add CQL:

Add your database driver:

See the Database documentation for complete setup instructions.

Method 3: Global Installation (Development)

For development and testing:

Verification

Verify your installation with a simple test:

1. Create a Test File

Create test_azu.cr:

2. Run the Test

You should see output like:

3. Test the Endpoint

Troubleshooting Installation

Common Issues

Issue: "command not found: crystal"

Solution:

Issue: "shards: command not found"

Solution:

Issue: "Error resolving dependencies"

Solution:

Issue: "Permission denied" errors

Solution:

Version Compatibility

Check version compatibility:

Network Issues

If you're behind a corporate firewall or proxy:

Development Environment Setup

VS Code

Install these extensions for the best Crystal development experience:

Vim/Neovim

Project Structure

After installation, your project should look like:

Environment Variables

Set up environment variables for different environments:

Next Steps

After successful installation:

  1. Your First Application → - Build your first Azu application

  2. Configuration → - Configure your application

  3. Core Concepts →arrow-up-right - Learn Azu's fundamental concepts

Support

If you encounter issues during installation:

  • Check the FAQ for common solutions

  • Verify Crystal installation: crystal version

  • Check network connectivity: ping github.com

  • Review error messages for specific guidance


Installation complete! You're ready to start building with Azu.

Last updated

Was this helpful?