Giter Site home page Giter Site logo

faridamuss / examples Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gadget-inc/examples

0.0 0.0 0.0 1.82 MB

A bunch of example front end applications built using Gadget

Shell 0.02% JavaScript 52.38% TypeScript 41.85% CSS 3.62% Nix 0.79% Liquid 1.34%

examples's Introduction

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)

examples's People

Contributors

airhorns avatar rdraward avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.