Coder Social home page Coder Social logo

radiance-ai / shopify-app-template-typescript Goto Github PK

View Code? Open in Web Editor NEW

This project forked from buddifyapp/shopify-app-template-typescript

0.0 0.0 0.0 6.85 MB

🧩 Shopify App Template (Node) with TypeScript (v2)

License: MIT License

Shell 0.74% JavaScript 45.55% TypeScript 53.02% HTML 0.69%

shopify-app-template-typescript's Introduction

Shopify App Node with TypeScript

License: MIT

This is a sample app (with TypeScript) to help developers bootstrap their Shopify app development.

It leverages the Shopify API Library on the backend to create an embedded app, and Polaris and App Bridge React on the frontend.

The original template (with JavaScript) is Shopify/shopify-app-template-node that is used when you create a new Node app with the Shopify CLI.

This is a minimalistic fork with TypeScript support.

Requirements

Quickstart

  1. Clone the repo
npx degit kanzitelli/shopify-app-template-typescript shopify-app-ts
  1. Create Shopify app
shopify app create node

Then copy .env file to the typescript project and remove the one you just created.

  • Or you can do it in the Shopify Partner Dashboard and then filling .env file with app's credentials (see .env.example).

Note: HOST value will be auto-filled when you run the app.

  1. Go to your app's directory and install packages
cd shopify-app-ts && yarn

Note: You could see error fatal: not a git repository (or any of the parent directories): .git that comes from husky install command. Once you do git init, it will disappear.

  1. Run the app
shopify app serve

Install and start using the app by opening provided URL in your browser: https://some-ngrok-subdomain-xxxx.ngrok.io/login?shop=your-shop-name.myshopify.com

Deployment

We will probably need to deploy it somewhere in the cloud when we are done with the app.

So Dockerfile and Docker Compose with https:// setup will be coming soon...

Enhancements

There are plans to create an advanced shopify-app-starter that will be powered by React Router, Mobx, a more opinionated structure, release-it, and other useful things.

Similar starters

Motivation

I started developing a Shopify app some time ago that uses NextJS and Koa, which are deprecated in favour of pure React App and Express. The codebase was primarily written using TS, and it was painful to see that Shopify doesn't provide a new template with TS setup. There is the issue since January 2022 where people ask for TS support but no luck so far. So that's how this repo was born. I tried to keep it as close as possible to the original repo but with TypeScript support.

License

This repository is available as open source under the terms of the MIT License.

shopify-app-template-typescript's People

Contributors

dependabot-preview[bot] avatar paulomarg avatar jakxz avatar dependabot[bot] avatar tylerball avatar kanzitelli avatar mkevinosullivan avatar mllemango avatar andyw8 avatar surma avatar nwtn avatar hannachen avatar katiedavis avatar jsullivan5 avatar kojo-shopify avatar ismail-syed avatar teddyhwang avatar nickwesselman avatar ashleyfulks avatar anthonymayer avatar atiqueahmedziad avatar chafreaky avatar thecodepixi avatar gfscott avatar meganmajewski avatar pliew avatar ryandurk avatar wshanks01 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.