Installation

Prerequisites

  • Crystal language installed. Follow the official Crystal installation guide.

  • 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

Last updated