Skip to content

Commit

Permalink
Merge pull request #1 from MIERUNE/auth
Browse files Browse the repository at this point in the history
ssr auth integration
  • Loading branch information
ciscorn authored Jul 19, 2024
2 parents 9b9be8a + 856c8fb commit c88dbbe
Show file tree
Hide file tree
Showing 19 changed files with 6,216 additions and 39 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GOOGLE_APPLICATION_CREDENTIALS="credentials.json"
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ Thumbs.db
# Vite
vite.config.js.timestamp-*
vite.config.ts.timestamp-*

credentials.json
33 changes: 4 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,13 @@
# create-svelte
# sveltekit-firebaseauth-ssr

Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/main/packages/create-svelte).

## Creating a project

If you're seeing this, you've probably already done this step. Congrats!
SvelteKit (Svelte 5, SSR) + Firebase Authentication の統合デモ

```bash
# create a new project in the current directory
npm create svelte@latest

# create a new project in my-app
npm create svelte@latest my-app
cp .env.example .env
```

## Developing

Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
`credentials.json` として Firebase プロジェクトのサービスアカウントのクレデンシャルを配置。

```bash
npm run dev

# or start the server and open the app in a new browser tab
npm run dev -- --open
```

## Building

To create a production version of your app:

```bash
npm run build
```

You can preview the production build with `npm run preview`.

> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.
Loading

0 comments on commit c88dbbe

Please sign in to comment.