Code Monkey home page Code Monkey logo

remix-shopify's Introduction

Depreacted

โš ๏ธ This project is deprecated.

Shopify released the official remix stack for apps, you can find it here.

This project is now deprecated.

Remix Shopify App

All in one Remix.run template to get started with Shopify App's.

Learn more about Remix Stacks.

npx create-remix@latest --template nullndr/remix-shopify

What's in the stack

Docker

The docker-compose.yaml file starts an ngrok container.

For this you need to get an ngrok auth token and set it in your .env file (you can use the .env.example file as example).

The NGROK_SUBDOMAIN is your subdomain for the ngrok.io domain, for example if you set NGROK_SUBDOMAIN=myfoobar your app will be accessible at myfoobar.ngrok.io.

This service starts also a web server at localhost:4040 to monitor your ngrok service.

Development

  1. Write your SHOPIFY_API_KEY and your SHOPIFY_API_SECRET in the .env file (you can use the .env.example file as example).

  2. Replace the SHOPIFY_APP_PERMISSIONS value in the .env file with the permissions your app needs.

Remember to write them with the following format:

SHOPIFY_APP_PERMISSIONS="read_customers,write_customers"
  1. Run the first build:

    npm run build
  2. Start dev server:

    npm run dev

Type Checking

This project uses TypeScript.

It's recommended to get TypeScript set up for your editor to get a really great in-editor experience with type checking and auto-complete.

To run type checking across the whole project, run the following:

npm run typecheck

Linting

This project uses ESLint for linting.

You can find it's configurations in .eslintrc.js.

Formatting

We use Prettier for auto-formatting in this project. It's recommended to install an editor plugin (like the VSCode Prettier plugin) to get auto-formatting on save. There's also a npm run format script you can run to format all files in the project.

remix-shopify's People

Contributors

nullndr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

mw10013

remix-shopify's Issues

Setup documentation not up-to-date with repo.

Hi,

Thank you for taking the time to publish this.

I am entirely new to Shopify app development (but not Remix) and this has helped me grasp some concepts. However, I am struggling setting up this stack correctly. It seems that the setup documentation is not current, as the files referenced (eg. app/routes/shopify/index) does not exist in the repos current state. I found the other files to slot in the clientId token and the clientSecret token. But when trying to install the app on a dev store, I am getting a blank screen despite the url seeming correct (for the redirect/auth).

If I had the knowledge to fix it I would update the documentation but I have not been successful. I will attempt some more but if you get the time, it would be lovely if you could take a look at the current documentation for the setup.

Best regards,
Magnus

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.