feat: implements dns example with full inkathon
template
#55
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR is part is meant to be compared with #56 .
Adds frontend example with full on inkathon.xyz template code. It adds a lot of features and boilerplate code for a more production ready app. Stuff which also might make it hard to actually understand the relevant js code for interacting with the smart contract.
Here is my personal pro/con list of creating examples for this repo with
inkathon.xyz
Pro:
Con:
I don't care to much about the pros, as these are in my opinion not relevant for a timeless, low maintance example. Afaik these examples are not meant to be showcase level dapps.
In this demo video I'm not using all features inkathon offers, like the toast system or more elaborate styles. I plainly copied the code over from the comparison
useinkathon
pr to showcase boilerplate overhead.inkathon-small.mov
Dependencies
The list of dependencies is long as inkathon comes with a lot of choices already made for you. I don't use too many features of these yet. It's for form handling, input validation, toasts, ui components, analytics, full-stack web framework next, loading spinners and more.
https://github.com/paritytech/ink-examples/blob/a575d4f66f9232a70413825a4260d4670eb74917/dns/example/frontend/package.json#L18-L55