Agoric / dapp-agoric-basics

This is a simple app for the Agoric smart contract platform.
0 stars 4 forks source link

start codespace in <20 sec with contract and ui running #49

Open dckc opened 4 months ago

dckc commented 4 months ago

47 works great!

But there are opportunities to optimize.

A suggestion I overheard:

  • Get the latest chain image already pulled down in the codespace
  • Have the chain running in the codespace already, producing blocks, contracts installed, UI port loaded. Then it's like 10-15 seconds from "I want a codespace for this dapp" to "i'm running the dapp". This likely could be done with a nightly build of the images for the codespace that pre-starts the chain and stuff.
amessbee commented 4 months ago

@dckc

I suggest changing title to:

start codespace in <120 sec with contract running

and here is why: Codespaces takes close to 110 seconds to set up the machine currently - that is before any of our (postCreate/postStart) commands for port visibility or yarn install are run. And that is also an optimized container that has a lot of stuff removed from the default container. I am, of course, going to try optimizing that further but I think <120 sec would be a more realistic goal.

dckc commented 4 months ago

If getting substantially less than 120 sec is infeasible, how about we give them some eye candy while it's working?

An excerpt of a talk by MarkM or Dean, or maybe @Jovonni wants yo record something fresh, or just have some animation or intro material with lots of diagrams.

Probably should be a separate issue.