GithubHelp home page GithubHelp logo

tlenclos / remix-shop Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 0.0 216 KB

Simple ecommerce website built with Remix

Home Page: https://remix-shop-example.vercel.app/

TypeScript 99.78% JavaScript 0.22%
ecommerce remix remix-run hypergraph stripe vercel

remix-shop's Introduction

Welcome to Remix Shop!

This is a template to start a small Ecommerce website with Remix, Hygraph and Stripe.

You can read more about it on our website TODO LINK (๐Ÿ‡ซ๐Ÿ‡ท)

โš ๏ธ This project is given as an example, some choices were made and might be specific to the website we built.

https://remix-shop-example.vercel.app/

External services

Hygraph

You will need to create a Hygraph account and project. This is a data CMS with a full GraphQL API.

A Hygraph project is available here and you can start by cloning it.

Stripe

The project use the Stripe checkout component to handle payments.

You can create an account and get API keys on the Stripe developer page.

Sendinblue

You will need to create a Sendinblue account and setup 2 emails template :

  • Order completed (template id 1)
  • Order shipped (template id 2)

Development

  • Copy .env.dist file and fill necessary env variables.
  • Install dependencies.
yarn install
  • Update schema url in codegen.yml , .graphqlrc.yml & api.ts with Hygraph Content API and run `yarn codegen

  • Afterwards, start the Remix development server like so:

yarn run dev

Open up http://localhost:3000 and you should be ready to go!

Schema / database evolutions

Once you have modifications to the schema on Hygraph, you can generate the API client again with yarn codegen.

If you plan to do a lot of modifications, we advise to run these 2 commands in parallel yarn codegen --watch and yarn tsc --watch.

Webhooks

  • To debug webhooks start ngrok with
ngrok http 3000

Deployment

This app uses Vercel for deployment but you can deploy anywhere with the available adapters.

remix-shop's People

Contributors

tlenclos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.