Skip to content

Quigley-Brendan/Quiz-Tutorial-BQ2

Repository files navigation

Gadget Examples

This repo holds a collection of example applications built on top of Gadget -- a fast backend builder.

Related Products

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, and HasManyThrough relationships
  • Generated API client (@gadget-client/related-products-example package) and React bindings (@gadget-inc/react package)

Simple Blog

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)

Login Logout

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)

File Uploads

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

Margin Calculator

Code

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)

About

A bunch of example front end applications built using Gadget

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •