This repo holds a collection of example applications built on top of Gadget -- a fast backend builder.
Code | Preview Site | API Reference
This is a related products picker for e-commerce merchants to select which products should be displayed together on their website. This is the administration interface frontend built in next.js. This UI saves data to a Gadget backend, which then writes data to a Shopify store powering the actual storefront.
- Backend: Gadget via GraphQL
- Frontend: next.js with
@gadgetinc/react
Features used:
- Gadget generated GraphQL API
- Shopify Connection
HasMany
,BelongsTo
, andHasManyThrough
relationships- Generated API client (
@gadget-client/related-products-example
package) and React bindings (@gadget-inc/react
package)
Code | Preview Site | API Reference
Everyone and their dog has a blog these days -- here's how you build a simple one in Gadget.
- Backend: Gadget via GraphQL
- Frontend: next.js with
@gadgetinc/react
and ChakraUI
Features used:
- Gadget generated GraphQL API
- Gadget authentication system (
User
model) - Generated API client (
@gadget-client/simple-blog-example
package) and React bindings (@gadget-inc/react
package)
Code | Preview Site | API Reference
This is an example of using Gadget's built in authentication system to log users in and out, and then grant only logged in users access to some data.
- Backend: Gadget via GraphQL
- Frontend: next.js with
@gadgetinc/react
Features used:
- Gadget generated GraphQL API
- Gadget authentication system (
User
model) - Generated API client (
@gadget-client/login-logout-example
package) and React bindings (@gadget-inc/react
package)
Code | Preview Site | API Reference
This is an example of using Gadget's built in file storage system where applications can easily store images, pdfs, audio files, or anything on behalf of users.
- Backend: Gadget via GraphQL
- Frontend: next.js with
@gadgetinc/react
Features used:
- Gadget generated GraphQL API
File
field- Generated API client (
@gadget-client/files-example
package) and React bindings (@gadget-inc/react
package) uppy
based upload widget and Gadget's direct-to-storage file upload feature
This is an example app implementing a profit margin calculator for an e-commerce merchant. The Gadget backend connects to Shopify to retrieve quotes, and then decorates them with some extra data that the e-commerce merchant populates using this frontend. The GraphQL API from the backend makes it easy to render a custom UI showing some data where Shopify is the source of truth blended with data where Gadget is the source of truth.
- Backend: Gadget via GraphQL
- Frontend: Remix with
@gadgetinc/react
Features used:
- Gadget generated GraphQL API
- Gadget's Shopify connection
- Generated API client (
@gadget-client/margin-calculator
package) and React bindings (@gadget-inc/react
package)