Skip to content

This repository demonstrates a simple example of deploying the Authzed service using Docker and includes Python scripts for interacting with the service.

Notifications You must be signed in to change notification settings

PureLeach/authzed-docker-example

Repository files navigation

Authzed Example: Getting Started

Overview

This repository provides a simple example of how to deploy the Authzed service using Docker. It also includes sample Python scripts to demonstrate interactions with the service.


Prerequisites

  • Docker and Docker Compose installed on your system.
  • Basic understanding of Python and Docker workflows.

Quick Start

1. Deploy the Authzed Service

  1. Copy the example environment file:
    cp example.env .env
  2. Build the Docker containers:
    docker-compose build
  3. Start the Authzed service:
    docker-compose up

2. Customize the Schema (Optional)

If you need to modify the schema:

  • Edit the file: docker/authzed/schema.yaml.
  • Redeploy the containers using the steps above.

3. Test Interaction with Authzed

  1. Create a new virtual environment and install dependencies:

    pipenv shell
    pipenv install
  2. Run one of the provided Python scripts to test the service:

    • For asynchronous interaction:
      python authzed_async_sample.py
    • For synchronous interaction:
      python authzed_sync_sample.py

Notes

  • Ensure your .env file is correctly configured for your environment.
  • Refer to the official Authzed Documentation for further details on schema design and advanced configurations.

Happy coding! 🎉

About

This repository demonstrates a simple example of deploying the Authzed service using Docker and includes Python scripts for interacting with the service.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published