Authority
  • Introduction
  • In Action
  • Performance at Scale
  • Roadmap / Features
  • Getting Started
    • Introduction
    • Installation
    • Configuration Overview
  • Authentication
    • Authentication Guide
    • API Documentation
    • Customizing Authentication
  • Security & Error Handling
    • Security Considerations
    • Error Handling & Troubleshooting
  • Providers
    • Client Providers
    • Owner Providers
  • API Endpoints
    • API Endpoints
  • DEVELOPMENT
    • Requirements
    • Database
    • User Interface
    • Specs
    • Deployment
      • Environment Variables
  • Reference
    • OAuth Terms
    • OAuth 2 Grant Flows
      • Device Flow
      • Authorization Flow
      • Client Credentials Flow
      • Refreshing Access Tokens
      • Access Token Response
      • Json Web Tokens
      • Legacy: Implicit grant
      • Legacy: Password
    • Open ID Connect
      • Configuration
      • Registering Clients
      • User Info
Powered by GitBook
On this page
  • Prerequisites
  • Steps

Was this helpful?

Export as PDF
  1. Getting Started

Installation

PreviousIntroductionNextConfiguration Overview

Last updated 7 months ago

Was this helpful?

Prerequisites

  • Crystal language installed. Follow the official .

  • PostgreSQL or another supported database.

  • Docker (if using Docker setup).

Steps

  1. Clone the repository:

    git clone <repository-url>
    cd authority
  2. Install dependencies:

    shards install
  3. Set up the database:

    createdb authority_db
  4. Configure environment variables in .env.local:

    cp .env.example .env.local
  5. Run the application:

    crystal run src/app.cr

Or using Docker:

docker-compose up --build
Crystal installation guide