https://github.com/yowainwright/rego-learning
Rego Learning
https://github.com/yowainwright/rego-learning
Last synced: 4 months ago
JSON representation
Rego Learning
- Host: GitHub
- URL: https://github.com/yowainwright/rego-learning
- Owner: yowainwright
- License: mit
- Created: 2023-03-10T23:06:09.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-11T00:48:19.000Z (over 3 years ago)
- Last Synced: 2025-01-01T20:09:32.694Z (over 1 year ago)
- Language: Open Policy Agent
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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