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

https://github.com/moinsen-dev/moinsen_supagen


https://github.com/moinsen-dev/moinsen_supagen

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

          

## moinsen_supagen

![coverage][coverage_badge]
[![style: very good analysis][very_good_analysis_badge]][very_good_analysis_link]
[![License: MIT][license_badge]][license_link]

Generated by the [Very Good CLI][very_good_cli_link] ๐Ÿค–

Generate supabase helper code..

---

## Pre requirements
* Conda must be installed

## First steps
# Setup Antl4

'''sh
conda create -n antlr python=3.11.4
pip install antlr4-tools
conda activate antlr
```

## Generate parser
```sh
rm -rf lib/gen && antlr4 -visitor -Dlanguage=Dart Prisma.g4 -o lib/gen/antlr
```

## Test grammar
```sh
dart lib/grammar_test.dart
```

## Getting Started ๐Ÿš€

If the CLI application is available on [pub](https://pub.dev), activate globally via:

```sh
dart pub global activate moinsen_supagen
```

Or locally via:

```sh
dart pub global activate . --source path
```

## Usage

```sh
# Sample command
$ moinsen_supagen sample

# Sample command option
$ moinsen_supagen sample --cyan

# Show CLI version
$ moinsen_supagen --version

# Show usage help
$ moinsen_supagen --help
```

## Running Tests with coverage ๐Ÿงช

To run all unit tests use the following command:

```sh
$ dart pub global activate coverage 1.2.0
$ dart test --coverage=coverage
$ dart pub global run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info
```

To view the generated coverage report you can use [lcov](https://github.com/linux-test-project/lcov)
.

```sh
# Generate Coverage Report
$ genhtml coverage/lcov.info -o coverage/

# Open Coverage Report
$ open coverage/index.html
```

## Know How
# ERD - Mermaid

https://mermaid.js.org/syntax/entityRelationshipDiagram.html

---

[coverage_badge]: coverage_badge.svg
[license_badge]: https://img.shields.io/badge/license-MIT-blue.svg
[license_link]: https://opensource.org/licenses/MIT
[very_good_analysis_badge]: https://img.shields.io/badge/style-very_good_analysis-B22C89.svg
[very_good_analysis_link]: https://pub.dev/packages/very_good_analysis
[very_good_cli_link]: https://github.com/VeryGoodOpenSource/very_good_cli