An open API service indexing awesome lists of open source software.

https://github.com/yowainwright/rego-learning

Rego Learning
https://github.com/yowainwright/rego-learning

Last synced: 4 months ago
JSON representation

Rego Learning

Awesome Lists containing this project

README

          

# Rego Learning

This repository contains basic [rego, a JSON superset language](https://www.openpolicyagent.org/docs/latest/policy-language/), examples based on [Open Policy Agent (OPA) documentation](https://www.openpolicyagent.org/).

---

## Setup

Setup the repository by running the setup script
```bash
./bin/setup.sh
```

Execute the tests by running the test script
```bash
./bin/run_tests.sh
```

When committing tests will be run. This package was built with the [VSCode Opa extension](https://marketplace.visualstudio.com/items?itemName=tsandall.opa).

---

## Directory Structure

- **`/bin`**: contains bash scripts for repository setup and testing
- **`/policy`**: is the most simple policy example
- **`/rest`**: is a REST API example
- **`/rest_detailed`**: is a REST API example with tests