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

Make it possible to install Postgres via NPM for local dev and testing #43

Open
stubailo opened this issue Oct 9, 2022 · 4 comments
Open

Comments

@stubailo
Copy link

stubailo commented Oct 9, 2022

We use Postgres in production, and I’d love to avoid having to install it globally on my machine for local dev.

would be awesome if you could just npm install something and have a real Postgres running virtually. Paul suggested I file an issue in case this is interesting to y’all! https://twitter.com/kiwicopple/status/1579196691584274433

@burggraf
Copy link
Collaborator

According to @jgoux, this is already possible using https://www.npmjs.com/package/embedded-postgres, which wraps https://github.com/zonkyio/embedded-postgres-binaries.

@stubailo
Copy link
Author

Yes definitely, feel free to close if you're not interested in pursuing this! Feels like it would be nicer to have something that's more guaranteed to be portable, rather than needing separate binaries for each OS/arch.

@jgoux
Copy link
Contributor

jgoux commented Oct 11, 2022

Yes definitely, feel free to close if you're not interested in pursuing this! Feels like it would be nicer to have something that's more guaranteed to be portable, rather than needing separate binaries for each OS/arch.

That's the dream for sure! Currently we're limited by WASM capabilities. It's tracked here: #37

@stubailo
Copy link
Author

Wouldn't it work to take the same approach of having a VM running in WASM, like you do for the browser? Or maybe I'm misunderstanding how it works

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

3 participants