https://github.com/moinsen-dev/moinsen_supagen
https://github.com/moinsen-dev/moinsen_supagen
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/moinsen-dev/moinsen_supagen
- Owner: moinsen-dev
- Created: 2023-10-15T14:17:52.000Z (over 2 years ago)
- Default Branch: develop
- Last Pushed: 2024-02-20T08:46:58.000Z (over 2 years ago)
- Last Synced: 2025-03-11T10:17:56.752Z (about 1 year ago)
- Language: Dart
- Size: 347 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
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