Skip to content
This repository has been archived by the owner on Feb 11, 2024. It is now read-only.

Commit

Permalink
52 febefirebaseログイン (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
sey323 authored Oct 24, 2023
1 parent 5c7086b commit 641ba0f
Show file tree
Hide file tree
Showing 8 changed files with 1,728 additions and 708 deletions.
7 changes: 7 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,10 @@ OPENAI_API_KEY=${OpenAIのAPIキー}
# GCPの設定
GOOGLE_APPLICATION_CREDENTIALS=${GCPのサービスアカウントキーのパス}
FIRE_STORAGE_BUCKET=${fire storageのバケット名}

FIREBASE_API_KEY=${firebaseのAPIキー}
FIREBASE_AUTH_DOMAIN=${firebaseの認証ドメイン}
FIREBASE_PROJECT_ID=${firebaseのプロジェクトID}
FIREBASE_MESSAGING_SENDER_ID=${firebaseのメッセージング送信者ID}
FIREBASE_APP_ID=${firebaseのアプリID}
FIREBASE_MEASUREMENT_ID=${firebaseの測定ID}
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ OPENAI_API_KEY=${OpenAIのAPIキー}
# GCPの設定
GOOGLE_APPLICATION_CREDENTIALS=${GCPのサービスアカウントキーのパス}
FIRE_STORAGE_BUCKET=${GCPのサービスアカウントキーのパス}

# Firebase Authenticationの設定
FIREBASE_API_KEY=${firebaseのAPIキー}
FIREBASE_AUTH_DOMAIN=${firebaseの認証ドメイン}
FIREBASE_PROJECT_ID=${firebaseのプロジェクトID}
FIREBASE_MESSAGING_SENDER_ID=${firebaseのメッセージング送信者ID}
FIREBASE_APP_ID=${firebaseのアプリID}
FIREBASE_MEASUREMENT_ID=${firebaseの測定ID}
```

### 2. サーバの起動
Expand Down
2 changes: 1 addition & 1 deletion components/MyProfiel.vue → components/MyProfile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
</template>
<script>
export default {
name: "proposal-form",
name: "MyProfile",
components: {},
data() {
return {
Expand Down
14 changes: 13 additions & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,23 @@
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true },
modules: ["@nuxtjs/tailwindcss"],
ssr: false,
modules: ["@nuxtjs/tailwindcss", "nuxt-vuefire"],
nitro: {
preset: "firebase",
firebase: {
gen: 2,
},
},
vuefire: {
auth: true, // enable Firebase Authentication
config: {
apiKey: process.env.FIREBASE_API_KEY,
authDomain: process.env.FIREBASE_AUTH_DOMAIN,
projectId: process.env.FIREBASE_PROJECT_ID,
messagingSenderId: process.env.FIREBASE_MESSAGING_SENDER_ID,
appId: process.env.FIREBASE_APP_ID,
measurementId: process.env.FIREBASE_MEASUREMENT_ID,
},
},
});
Loading

0 comments on commit 641ba0f

Please sign in to comment.