FrancescoXX / FrancescoXX/fullstack-next-node-postgres
need to create table inside the db
- Lenguaje dominante
- TypeScript
- Estrellas
- 68
- Forks
- 32
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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
```
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Start by reading backend/backend.dockerfile and compose.yaml, then run the services to reproduce the missing-table error. Verify the database is initialized from the schema after the database and backend start, and confirm that the user create, update, and delete requests work without the error.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- docker-compose, postgresql, typescript
- Área
- backend, database, devops
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 45/100