https://github.com/serverless-operations/poc-serverless-ec-frontend
https://github.com/serverless-operations/poc-serverless-ec-frontend
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/serverless-operations/poc-serverless-ec-frontend
- Owner: serverless-operations
- Created: 2020-07-18T07:22:27.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-06-21T23:09:15.000Z (almost 3 years ago)
- Last Synced: 2025-06-24T18:52:55.527Z (11 months ago)
- Language: Vue
- Size: 463 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# poc-serverless-ec-frontend
Nuxt + Apollo + Auth0 + AppSync(OIDC) で構成されるサーバーレスな EC サイトのサンプルです。
## 実行環境
- Node.js v12.13.0 以上
- Yarn 1.22.0 以上
## 依存関係のセットアップ
```
yarn setup
```
## 環境変数の設定
.env ファイルを作成して以下の環境変数をセットします
```
APPSYNC_GRAPHQL_ENDPOINT=
APPSYNC_REGION=
AUTH0_DOMAIN=
AUTH0_CLIENT_ID=
```
## 動作確認
1. `yarn dev` コマンドを実行してローカルでアプリを起動する
2. `https://localhost:3000/` 「サインイン」ボタンを押す
(Auth0画面遷移 → callback で戻る)
3. `https://localhost:3000/main` 「購入する」ボタンを押す