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 this behave more like a --frontend-template #151

Open
chadoh opened this issue May 31, 2024 · 0 comments
Open

Make this behave more like a --frontend-template #151

chadoh opened this issue May 31, 2024 · 0 comments

Comments

@chadoh
Copy link
Contributor

chadoh commented May 31, 2024

pre-req: #150

What problem does your feature solve?

The Getting Started tutorial has you create a frontend app using

soroban contract init --frontend-template https://github.com/stellar/soroban-astro-template

That frontend template is nice, because it expects that it was used with soroban contract init, and that it thus has a contracts folder with an unknown set of contracts in it. It's made in a generic way to allow you to quickly get started with any of those contracts.

This repository, on the other hand, has a hard-coded list of contracts. It also has a fairly built-out UI that interacts with them, using an opinionated atoms/molecules/organisms component organization approach.

What would you like to see?

This repository should function a bit more like a template. Maybe it can still have a hard-coded example contract, because it does have some interesting custom behavior around event subscriptions (see the useSubscription hook) that's hard to figure out on one's own.

The idea of these templates is that anyone can create them, and then perhaps SDF can create a community program for template maintainers to receive funding for creating and keeping up these templates. We could also list these somewhere in our docs, or encourage a naming strategy that makes them easy to find on GitHub. Perhaps at that point, this repo could be transferred to a community maintainer, rather than being part of the official stellar org.

Given that the "official" template uses vanilla JS, via Astro's templating system, and this one uses Next.js and React, it probably makes sense to continue to have both on offer, since which one chooses is a matter of preference.

@chadoh chadoh added this to Aha May 31, 2024
@chadoh chadoh moved this to Todo in Aha May 31, 2024
@chadoh chadoh removed the status in Aha May 31, 2024
@chadoh chadoh moved this to To do in Aha Jun 3, 2024
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