Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #28

Merged
merged 20 commits into from
Nov 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 21 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,37 @@ Based on the Metabase API, it helps creating Metabase resources based on YAML co

This program is not a dedicated gem, you must run it using the `main.rb` file. However we'll probably enhance tests and library and then share it.

First, install dependencies:
1. Ensure file `main.rb` has the execution rights, if not, add it :
```bash
bundle install
chmod +x main.rb
```

Ensure file `main.rb` has the execution rights, if not, add it :
2. Install dependencies:
```bash
chmod +x main.rb
bundle install
```

Pull the defined submodules
3. Pull the defined submodules
```bash
git submodule update --recursive
```

Move `config.yml.example` to `config.yml` and replace placeholders by your configuration.
4. Move `config.yml.example` to `config.yml` and replace placeholders by your configuration.

Don't forget to setup env variables for metabase connection:
5. Don't forget to setup env variables for Metabase connection:
```bash
export METABASE_HOST="metabase.example.com" && export METABASE_USERNAME="[email protected]" && export METABASE_PASSWORD="secretpassword"
# Also possible to put relevant variables in a .env file
```
You also can use a `.env` file containing the relevant informations
```bash
METABASE_HOST=metabase.example.com
[email protected]
METABASE_PASSWORD=secretpassword
```
and source it
```bash
source .env
```

## Usage
Expand Down
Loading