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

interactively-test-driver from README sounds great but doesn't exist? #2

Open
ericcj opened this issue Nov 7, 2022 · 1 comment
Open

Comments

@ericcj
Copy link

ericcj commented Nov 7, 2022

i'm attempting to write my first driver and at the step of wanting to bring up a development server with it loaded and test connecting to a database, but stuck. the example here looks great but must be out of date. same with the one in https://github.com/metabase/sudoku-driver#hacking-on-the-driver-locally the "run" alias doesn't seem to exist. https://www.metabase.com/docs/latest/developers-guide/drivers/start doesn't seem to have info on this either what's the latest and greatest for getting my new driver to connect to a database without just dropping it into a production metabase server and hoping the logs are good enough to debug?

@ericcj
Copy link
Author

ericcj commented Nov 7, 2022

actually if i cd into my metabase directory then i can do "clojure -M:user/my-driver:run" it does bring up http://localhost:3000 but maybe should have just run from the metabase jar instead of attempting to build it from source since then you have to do the frontend build also and i spent forever on some nodejs stuff.

for anyone else stuck: on the current node LTS (v18.12.1) and os x 12.5.1 I had to edit metabase/package.json as follows:

"build-hot:js": "yarn && NODE_OPTIONS=--openssl-legacy-provider WEBPACK_BUNDLE=hot webpack serve",

which fixed https://stackoverflow.com/questions/69692842/error-message-error0308010cdigital-envelope-routinesunsupported but still left me with the following on my browser console: "Parsing application manifest http://localhost:3000/setup/app/assets/img/site.webmanifest: The manifest is not valid JSON data."

That path is some html that looks vaguely like:

<title>Metabase</title>
<base href="/"/>

<script type="application/json" id="_metabaseBootstrap">
      {"engines":{"postgres":{"source":{"type":"official",...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant