FrancescoXX / FrancescoXX/fullstack-next-node-postgres

need to create table inside the db

オープン
#1 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
68
フォーク
32
PR マージ指標
30日以内にマージされた PR はありません

説明

we need to create a table inside the Postgres database from the schema after the db and backend are up and running other we will get an error when we request the backend to create, update, delete a user cuz we don't have a table inside the db container

here is my solution we can remove 'CMD' to run the server form [backend.dockerfile](https://github.com/FrancescoXX/fullstack-next-node-postgres/blob/main/backend/backend.dockerfile) and this command inside [compose.yaml](https://github.com/FrancescoXX/fullstack-next-node-postgres/blob/main/compose.yaml) file

```yaml
command: sh -c "npm run start && npx prisma migrate dev --name init"
depends_on:
- db
```

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

まず backend/backend.dockerfile と compose.yaml を読み、次にサービスを実行してテーブルが存在しないエラーを再現します。データベースとバックエンドの起動後に、データベースがスキーマから初期化されることを確認し、ユーザーの作成、更新、削除のリクエストがエラーなしで機能することを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
docker-compose, postgresql, typescript
領域
backend, database, devops
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。