nkzw-tech / athena-crisis

Athena Crisis is an Advance Wars inspired modern-retro turn-based tactical strategy game. Athena Crisis is open core technology.
https://athenacrisis.com/open-source
Other
1.37k stars 105 forks source link

Add one-click button to run and edit the code in CodeSandbox cloud IDE #20

Closed tomsdev closed 1 month ago

tomsdev commented 1 month ago

Hello, thanks for open-sourcing the game, this is a dream come true!

I think adding a very easy and quick way to run and edit the code will help getting new contributors.

I tried running it with Stackblitz but unfortunately they don't support Node version 20 yet and it seems Prisma cannot fully run inside it. However I tried CodeSandbox and it runs well! I just had to decrease the required minimal version of pnpm and added a little bit of CodeSandbox specific configuration so that nothing needs to be configured and the project can run immediatly and open the demo at localhost:3003 automatically.

You can try it here: https://codesandbox.io/p/github/tomsdev/athena-crisis

cpojer commented 1 month ago

This is great! Could you undo the changes to the package.json and pnpm-lock.yaml? I'd love to allow using earlier versions of pnpm but the lockfile format changed so there is a lot of churn if people use different pnpm versions.

cpojer commented 1 month ago

The config was contributed by @Saeris in #26, so I reverted all changes from here except the README additions. Thanks for bringing up the idea!