Installation
Get Azu up and running on your system with this comprehensive installation guide. This guide covers everything from prerequisites to troubleshooting common issues.
Prerequisites
Before installing Azu, ensure you have the following prerequisites installed on your system.
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.xLinux (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 versionLinux (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
Method 1: New Project (Recommended)
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:
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
Recommended IDE 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:
Quick Start Guide - Get running in 5 minutes
Tutorial - Build your first complete application
Configuration - Configure your application
Architecture Overview - Understand how Azu works
Support
If you encounter issues during installation:
Check the FAQ for common solutions
Verify Crystal installation:
crystal versionCheck network connectivity:
ping github.comReview error messages for specific guidance
Installation complete! You're ready to start building with Azu. 🚀
Last updated
Was this helpful?
