TBD54566975 / tbdex-pfi-exemplar

4 stars 8 forks source link

add codesandbox environment #12

Closed michaelneale closed 7 months ago

michaelneale commented 10 months ago

It would be nice to be able to launch this example in a codesandbox instance (with postgres etc).

cc @blackgirlbytes @acekyd

acekyd commented 10 months ago

Got feedback from the CSB team that this is possible. Will give it a go next week. @michaelneale

michaelneale commented 10 months ago

@acekyd no worries - would help for any contributors/hacktoberfest like thingies (not sure if any are imminent @angiejones) was main driver. Let me know how you go - if falls off your plate tag me as I am trying to update an example sometime so may get to it.

acekyd commented 9 months ago

Hi @michaelneale, gave this a shot with the config needed to have this running on CSB but I'm stuck and unable to run the postgres commands.

You can take a look (and fork) this project in case I'm missing something. Thanks

michaelneale commented 9 months ago

@acekyd can you give this a try: https://github.com/TBD54566975/tbdex-pfi-exemplar?tab=readme-ov-file#running-in-codesandbox using a devbox - see if you wait for a hit and can follow the steps to run the pFI?

acekyd commented 9 months ago

Awesome!! I was able to fork that devbox and got it running here @michaelneale.

Heads up, CodeSandbox won't show the .env file in the explorer so it has to be set after running the command in logo dropdown > Settings > Environment variables > Plain text. Screenshot 2024-01-19 at 15 58 02

michaelneale commented 9 months ago

cool - @acekyd good enough to close this issue?

michaelneale commented 9 months ago

I guess should as @angiejones if this approach is scalable for people trying it out en-mass?

acekyd commented 9 months ago

Good enough to close the issue! @michaelneale. Tried to automate the db commands but CSB runs them synchronously instead. So I think this current setup works.