{"id":16466205,"url":"https://github.com/isystk/nextjs-typescript-firebase","last_synced_at":"2026-05-09T05:05:06.382Z","repository":{"id":46014284,"uuid":"328676323","full_name":"isystk/nextjs-typescript-firebase","owner":"isystk","description":"Next.js・Typescript ・Firebaseを利用したサンプルです。","archived":false,"fork":false,"pushed_at":"2022-07-24T13:20:25.000Z","size":19042,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-10T13:53:06.689Z","etag":null,"topics":["firebase","material-ui","reactjs","redux-toolkit","typescipt","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/isystk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-01-11T13:41:33.000Z","updated_at":"2021-11-20T08:57:20.000Z","dependencies_parsed_at":"2022-09-19T07:51:47.938Z","dependency_job_id":null,"html_url":"https://github.com/isystk/nextjs-typescript-firebase","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isystk%2Fnextjs-typescript-firebase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isystk%2Fnextjs-typescript-firebase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isystk%2Fnextjs-typescript-firebase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isystk%2Fnextjs-typescript-firebase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/isystk","download_url":"https://codeload.github.com/isystk/nextjs-typescript-firebase/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241026878,"owners_count":19896716,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["firebase","material-ui","reactjs","redux-toolkit","typescipt","typescript"],"created_at":"2024-10-11T11:36:45.871Z","updated_at":"2026-05-09T05:05:06.331Z","avatar_url":"https://github.com/isystk.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"🌙 nextjs-typescript-firebase\n====\n\n[![CircleCI](https://circleci.com/gh/isystk/nextjs-typescript-firebase/tree/master.svg?style=svg)](https://circleci.com/gh/isystk/nextjs-typescript-firebase/tree/master)\n![GitHub issues](https://img.shields.io/github/issues/isystk/nextjs-typescript-firebase)\n![GitHub forks](https://img.shields.io/github/forks/isystk/nextjs-typescript-firebase)\n![GitHub stars](https://img.shields.io/github/stars/isystk/nextjs-typescript-firebase)\n![GitHub license](https://img.shields.io/github/license/isystk/nextjs-typescript-firebase)\n\n## 📗 プロジェクトの概要\n\nNext.js ＆ Firebase の学習用サンプルアプリケーションです。\n\n\n## 🌐 Demo\n\n![投稿一覧画面](./app1.png \"投稿一覧画面\")\n![投稿画面](./app2.png \"投稿画面\")\n\n- ログイン/ログアウト\n- 会員登録\n- 投稿一覧\n- 投稿詳細\n- マイページ（一覧・登録・更新・削除）\n\n\n## 📦 ディレクトリ構造\n\n```\n.\n├── docker/\n│   ├── apache/ (Webサーバー)\n│   │   └── Dockerfile\n│   ├── app/ (Node.js をDockerで動作させたい場合に利用する)\n│   │   └── Dockerfile\n│   └── firebase/ (Firebase のエミュレータ)\n│       ├── Dockerfile\n│       └── src\n│           └── functions (Cloud functions のソースコード)\n├── public/\n├── src/ (Next.js のソースコード)\n│   ├── auth/\n│   ├── common/\n│   ├── components/\n│   ├── pages/\n│   ├── store/\n│   ├── styles/\n│   └── utilities/\n├── test/\n└── dc.sh （Dockerの起動用スクリプト）\n```\n\n## 🖊️ Docker 操作用シェルスクリプトの使い方\n\n```\nUsage:\n  dc.sh [command] [\u003coptions\u003e]\n\nOptions:\n  stats|st                 Dockerコンテナの状態を表示します。\n  init                     Dockerコンテナ・イメージ・生成ファイルの状態を初期化します。\n  start                    すべてのDaemonを起動します。\n  stop                     すべてのDaemonを停止します。\n  firebase login           Firebase にログインします。\n  firebase start           Firebase のエミュレータを起動します。\n  firebase build           Cloud Functions をビルドします。\n  firebase deploy          Firebase にデプロイします。\n  --version, -v     バージョンを表示します。\n  --help, -h        ヘルプを表示します。\n```\n\n\n## 💬 使い方\n\n```\n# 下準備\n$ ./dc.sh init\n$ cp .env.example .env\n\n# Dockerを起動する\n$ ./dc.sh start\n\n# 初回のみFirebaseのセットアップ\n./dc.sh firebase login\n./dc.sh firebase init\n\n# Firebaseエミュレータを起動します。\n$ ./dc.sh firebase start\n$ open http://localhost:4000\n\n# Cloud Functions をビルドします。\ndocker-compose -f docker/docker-compose.yml exec firebase sh\ncd ./functions\nyarn\nyarn build\n\n# 投稿データをPOST\ncurl -X POST -H \"Content-Type: application/json\" -d @post.json http://localhost:5001/nextjs-typescript-firestore/us-central1/api/posts\n# 投稿データの一覧を取得する\ncurl http://localhost:5001/nextjs-typescript-firestore/us-central1/api/posts\n\n# Next.jsアプリを起動します。\n./dc.sh app install\n./dc.sh app dev\n$ open http://localhost:3000\n\n# Dockerを停止する場合\n$ ./dc.sh stop\n```\n\n## 🎨 参考\n\n| プロジェクト| 概要|\n| :---------------------------------------| :-------------------------------|\n| [react-bootstrap](https://react-bootstrap.github.io/components/)| BootstrapのReact用コンポーネント |\n| [今更ながらのNext.js + TypeScript + Firebaseで認証機能を実装する](https://zenn.dev/k_logic24/articles/react-auth-with-firebase)| 今更ながらのNext.js + TypeScript + Firebaseで認証機能を実装する |\n\n\n## 🎫 Licence\n\n[MIT](https://github.com/isystk/nextjs-typescript-firebase/blob/master/LICENSE)\n\n## 👀 Author\n\n[isystk](https://github.com/isystk)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisystk%2Fnextjs-typescript-firebase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fisystk%2Fnextjs-typescript-firebase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisystk%2Fnextjs-typescript-firebase/lists"}