Sign inSign up

kuberlab/digitalsuits-shopify-app

By kuberlab

Updated over 2 years ago

Image
0

626

kuberlab/digitalsuits-shopify-app repository overview

Veriken app

This is Veriken app.

Node version

>=14.13.1 19.6.1

Requires libs

Installation

`

For dev

npm install cd web npm install npx sequelize-cli db:migrate cd frontend npm install

For prod

cd web npm install npx sequelize-cli db:migrate cd frontend npm install npm run build

Start application

For dev

source .env
npm run dev

For prod

source .env
cd web
npm run serve

Heroku setting

heroku config:set PGSSLMODE=no-verify

DB migrations

Status of all migrations

npx sequelize db:migrate:status

Running migrations

npx sequelize-cli db:migrate

Running migrations in heroku

heroku run npx sequelize-cli db:migrate

Undoing all migrations

db:migrate:undo:all

Undoing migrations

npx sequelize-cli db:migrate:undo:all --to XXXXXXXXXXXXXX-migration-name.js

Setup environment

fill .env with the next config

#SHOPIFY
SHOPIFY_API_KEY=Shopify api key
SHOPIFY_API_SECRET=Shopify api secret
SCOPES=app scope (example: write_products)
#HOST
HOST=app domain (example: shopify-app.com) 
#TEST SHOP
SHOP=test shop domain (example: apptest-store.myshopify.com)
#DB
DATABASE_HOST=Database host
DATABASE_USERNAME=Database username
DATABASE_PASSWORD=Database password
DATABASE_NAME=Database name
DATABASE_PORT=Database port (example: 5432)
#APP
PORT=app port (example:3000)
TEST_CRON_CHECK_NFT_SALES_ELIGIBILITY=false If you have tested cron-job must be "true"
#VERIKEN
VERIKEN_API_URL=Veriken API url (example: https://testnet.veriken.net/api/v1)
NEAR_WALLET_URL=
Build

The frontend is a single page app. It requires the SHOPIFY_API_KEY, which you can find on the page for your app in your partners dashboard. Paste your app’s key in the command for the package manager of your choice:

Using yarn:

cd web/frontend/ && SHOPIFY_API_KEY=REPLACE_ME yarn build

Using npm:

cd web/frontend/ && SHOPIFY_API_KEY=REPLACE_ME npm run build

Using pnpm:

cd web/frontend/ && SHOPIFY_API_KEY=REPLACE_ME pnpm run build

You do not need to build the backend.

Tag summary

Content type

Image

Digest

sha256:60e416452

Size

70.7 MB

Last updated

over 2 years ago

docker pull kuberlab/digitalsuits-shopify-app