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.
- Docker and Docker Compose installed on your system.
- Basic understanding of Python and Docker workflows.
- Copy the example environment file:
cp example.env .env
- Build the Docker containers:
docker-compose build
- Start the Authzed service:
docker-compose up
If you need to modify the schema:
- Edit the file:
docker/authzed/schema.yaml
. - Redeploy the containers using the steps above.
-
Create a new virtual environment and install dependencies:
pipenv shell pipenv install
-
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
- For asynchronous interaction:
- 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! 🎉