GithubHelp home page GithubHelp logo

rezon-8-ion / dev-1-hyd-shopify-marketplaces-admin-app Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shopify/shopify-marketplaces-admin-app

0.0 0.0 0.0 319 KB

Dev 1 Hyd MKT

License: MIT License

JavaScript 99.95% HTML 0.05%

dev-1-hyd-shopify-marketplaces-admin-app's Introduction

Shopify Merchant-Facing Channel App

This is a Node App with Express and React. It is to be used as a starting point for a merchant facing channel app for marketplaces. This repo makes use of Shopify CLI commands to help setup your app quickly and easily.



1. Getting Started

Requirements:

To set up for first time

Clone this repository:

git clone https://github.com/Shopify/shopify-marketplaces-admin-app

Install dependencies:

yarn

Run migrations:

npx sequelize-cli db:migrate

Add scopes:

Create a .env file in the root folder Add the following scopes to .env file unauthenticated_read_product_listings,read_product_listings. Your .env file should look like the following:

SCOPES=unauthenticated_read_product_listings,read_product_listings

Run and install app:

To run this in dev:

shopify app serve

This will walk you through a series of steps to setup the app in your development store.

To run in production:

yarn build
yarn start

2. Overview of Code Structure

Familiarize yourself with the code structure for the merchant-facing channel app, to help you add all additional features that will be required, it is a great way to get started! The file structure follows that of Shopify CLI. We highly recommend familiarizing yourself with the Shopify CLI and Channels UI. A description of the code for this app can be found on the Marketplace Kit docs.

Familiarize yourself with the code structure for the merchant-facing app, to help orient you to subsequent Marketplace Kit tutorials.

Code structure
Folder/file Contains
app/* React code for the frontend, which the merchant sees in the Shopify admin
server/index.js The setup for the app's Express server, the Shopify API library, and the Apollo GraphQL server
server/custom-session-storage.js Custom session storage functions to store data in the database.You might need to edit this for the database that you're using
server/handlers/* Helper functions for making REST and GraphQL calls to Shopify, so that you can do things like create Storefront Access Tokens. Also includes callback functions that are called when the app receives a webhook from Shopify
server/helpers.js Helper and wrapper functions that call functions in the handlers folder
webpack.config.js The configuration for webpack, which is the app's module bundler. You might need to edit this file depending on your needs for development and production

3. How to use this repo

We have bundled up the code from our tutorials to help you get started building marketplaces quickly. You can use the code in this repo out-of-the-box but we highly recommend familiarizing yourself with the codebase and tutorials so you can have a full understanding of how it works. Marketplace Kit requirements is a good starting point and provides explanations for the code. This will make it easier for you to modify and customize your marketplace.

4. Key tech

5. License

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

dev-1-hyd-shopify-marketplaces-admin-app's People

Contributors

misshula avatar karen-boop avatar ricas07 avatar aeldamaty avatar smolsoftboi avatar cursedcoder avatar drzo avatar kenjiduggan avatar shopify[bot] 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.