├── .babelrc ├── .env-sample ├── .eslintrc.json ├── .github ├── PULL_REQUEST_TEMPLATE.md └── workflows │ └── validate-workflow.yml ├── .gitignore ├── .lobby.yml ├── .nvmrc ├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── app.json ├── components ├── error.tsx ├── form.tsx ├── header.tsx ├── innerHeader.tsx └── loading.tsx ├── context └── session.tsx ├── jest.config.js ├── jest.setup.ts ├── lib ├── auth.ts ├── db.ts ├── dbs │ ├── firebase.ts │ └── mysql.ts └── hooks.ts ├── next-env.d.ts ├── package.json ├── pages ├── _app.tsx ├── _document.tsx ├── api │ ├── auth.ts │ ├── load.ts │ ├── logout.ts │ ├── orders │ │ └── [orderId] │ │ │ ├── index.ts │ │ │ └── shipping_products.ts │ ├── products │ │ ├── [pid].ts │ │ ├── index.ts │ │ └── list.ts │ ├── removeUser.ts │ └── uninstall.ts ├── index.tsx ├── orders │ └── [orderId] │ │ ├── index.tsx │ │ └── modal.tsx ├── productAppExtension │ └── [productId] │ │ └── index.tsx └── products │ ├── [pid].tsx │ └── index.tsx ├── sample-firebase-keys.json ├── scripts ├── bcSdk.js └── db.js ├── test ├── mocks │ └── hooks.ts ├── pages │ ├── __snapshots__ │ │ └── index.spec.tsx.snap │ ├── index.spec.tsx │ ├── productAppExtension │ │ ├── __snapshots__ │ │ │ └── index.spec.tsx.snap │ │ └── index.spec.tsx │ └── products │ │ ├── [pid].spec.tsx │ │ ├── __snapshots__ │ │ ├── [pid].spec.tsx.snap │ │ └── index.spec.tsx.snap │ │ └── index.spec.tsx └── utils.tsx ├── tsconfig.json └── types ├── auth.ts ├── data.ts ├── db.ts ├── error.ts ├── index.ts └── order.ts /.babelrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/.babelrc -------------------------------------------------------------------------------- /.env-sample: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/.env-sample -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/.github/PULL_REQUEST_TEMPLATE.md -------------------------------------------------------------------------------- /.github/workflows/validate-workflow.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/.github/workflows/validate-workflow.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/.gitignore -------------------------------------------------------------------------------- /.lobby.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/.lobby.yml -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | 18 2 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/README.md -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/app.json -------------------------------------------------------------------------------- /components/error.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/components/error.tsx -------------------------------------------------------------------------------- /components/form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/components/form.tsx -------------------------------------------------------------------------------- /components/header.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/components/header.tsx -------------------------------------------------------------------------------- /components/innerHeader.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/components/innerHeader.tsx -------------------------------------------------------------------------------- /components/loading.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/components/loading.tsx -------------------------------------------------------------------------------- /context/session.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/context/session.tsx -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/jest.config.js -------------------------------------------------------------------------------- /jest.setup.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/jest.setup.ts -------------------------------------------------------------------------------- /lib/auth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/lib/auth.ts -------------------------------------------------------------------------------- /lib/db.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/lib/db.ts -------------------------------------------------------------------------------- /lib/dbs/firebase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/lib/dbs/firebase.ts -------------------------------------------------------------------------------- /lib/dbs/mysql.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/lib/dbs/mysql.ts -------------------------------------------------------------------------------- /lib/hooks.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/lib/hooks.ts -------------------------------------------------------------------------------- /next-env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/next-env.d.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/package.json -------------------------------------------------------------------------------- /pages/_app.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/pages/_app.tsx -------------------------------------------------------------------------------- /pages/_document.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/pages/_document.tsx -------------------------------------------------------------------------------- /pages/api/auth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/pages/api/auth.ts -------------------------------------------------------------------------------- /pages/api/load.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/pages/api/load.ts -------------------------------------------------------------------------------- /pages/api/logout.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/pages/api/logout.ts -------------------------------------------------------------------------------- /pages/api/orders/[orderId]/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/pages/api/orders/[orderId]/index.ts -------------------------------------------------------------------------------- /pages/api/orders/[orderId]/shipping_products.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/pages/api/orders/[orderId]/shipping_products.ts -------------------------------------------------------------------------------- /pages/api/products/[pid].ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/pages/api/products/[pid].ts -------------------------------------------------------------------------------- /pages/api/products/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/pages/api/products/index.ts -------------------------------------------------------------------------------- /pages/api/products/list.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/pages/api/products/list.ts -------------------------------------------------------------------------------- /pages/api/removeUser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/pages/api/removeUser.ts -------------------------------------------------------------------------------- /pages/api/uninstall.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/pages/api/uninstall.ts -------------------------------------------------------------------------------- /pages/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/pages/index.tsx -------------------------------------------------------------------------------- /pages/orders/[orderId]/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/pages/orders/[orderId]/index.tsx -------------------------------------------------------------------------------- /pages/orders/[orderId]/modal.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/pages/orders/[orderId]/modal.tsx -------------------------------------------------------------------------------- /pages/productAppExtension/[productId]/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/pages/productAppExtension/[productId]/index.tsx -------------------------------------------------------------------------------- /pages/products/[pid].tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/pages/products/[pid].tsx -------------------------------------------------------------------------------- /pages/products/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/pages/products/index.tsx -------------------------------------------------------------------------------- /sample-firebase-keys.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/sample-firebase-keys.json -------------------------------------------------------------------------------- /scripts/bcSdk.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/scripts/bcSdk.js -------------------------------------------------------------------------------- /scripts/db.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/scripts/db.js -------------------------------------------------------------------------------- /test/mocks/hooks.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/test/mocks/hooks.ts -------------------------------------------------------------------------------- /test/pages/__snapshots__/index.spec.tsx.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/test/pages/__snapshots__/index.spec.tsx.snap -------------------------------------------------------------------------------- /test/pages/index.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/test/pages/index.spec.tsx -------------------------------------------------------------------------------- /test/pages/productAppExtension/__snapshots__/index.spec.tsx.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/test/pages/productAppExtension/__snapshots__/index.spec.tsx.snap -------------------------------------------------------------------------------- /test/pages/productAppExtension/index.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/test/pages/productAppExtension/index.spec.tsx -------------------------------------------------------------------------------- /test/pages/products/[pid].spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/test/pages/products/[pid].spec.tsx -------------------------------------------------------------------------------- /test/pages/products/__snapshots__/[pid].spec.tsx.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/test/pages/products/__snapshots__/[pid].spec.tsx.snap -------------------------------------------------------------------------------- /test/pages/products/__snapshots__/index.spec.tsx.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/test/pages/products/__snapshots__/index.spec.tsx.snap -------------------------------------------------------------------------------- /test/pages/products/index.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/test/pages/products/index.spec.tsx -------------------------------------------------------------------------------- /test/utils.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/test/utils.tsx -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/tsconfig.json -------------------------------------------------------------------------------- /types/auth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/types/auth.ts -------------------------------------------------------------------------------- /types/data.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/types/data.ts -------------------------------------------------------------------------------- /types/db.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/types/db.ts -------------------------------------------------------------------------------- /types/error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/types/error.ts -------------------------------------------------------------------------------- /types/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/types/index.ts -------------------------------------------------------------------------------- /types/order.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/sample-app-nodejs/HEAD/types/order.ts --------------------------------------------------------------------------------