https://github.com/tokku5552/todoapp-nextjs-ts
TodoApp sample with next.js/TypeScript
https://github.com/tokku5552/todoapp-nextjs-ts
docker firebase nextjs typescript
Last synced: 2 months ago
JSON representation
TodoApp sample with next.js/TypeScript
- Host: GitHub
- URL: https://github.com/tokku5552/todoapp-nextjs-ts
- Owner: tokku5552
- Created: 2021-07-31T02:54:23.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-08-16T15:10:37.000Z (almost 5 years ago)
- Last Synced: 2023-03-09T04:56:56.662Z (over 3 years ago)
- Topics: docker, firebase, nextjs, typescript
- Language: TypeScript
- Homepage:
- Size: 1.04 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TodoApp sample Next.js/TypeScript
```
npx create-next-app todoapp --example with-typescript
```
# packages
```
npm install --save firebase
npm install --save swr
npm install --save react-loader-spinner
npm install --save @chakra-ui/react @emotion/react @emotion/styled framer-motion @chakra-ui/icons
```
# setting firebase
```
firebase login
firebase init
```
# コマンド集
- コンテナを起動するとき
```
docker-compose up
docker-compose run -p 3000:3000 -p 4000:4000 -p 5000:5000 -p 5001:5001 -p 8080:8080 -p 9005:9005 node-container /bin/bash
docker-compose run -p 3000:3000 -p 4000:4000 -p 5000:5000 -p 5001:5001 -p 8080:8080 -p 9005:9005 node-container npm run dev
```
- 起動済みのコンテナに接続するとき
```
docker ps
docker exec -it /bin/bash
docker exec -it "$(docker ps -qf "name=node-container")" /bin/bash
docker exec -it "$(docker ps -qf "name=node-container")" npm run dev
```
- コンテナを停止するとき
```
docker-compose down
docker-compose down --rmi all
```
- リポジトリからクローンしてきたとき
```
npm install
```
- ローカルでのサーバ立ち上げ
```
npm run dev
```
- デプロイ
```
npm run deploy
```