Skip to content

feat: adds new db package with postgres docker image #661

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 9, 2025

Conversation

anthonydmays
Copy link
Contributor

Signed-off-by: Anthony D. Mays [email protected]

@Copilot Copilot AI review requested due to automatic review settings June 9, 2025 18:54
@anthonydmays anthonydmays merged commit 060dad8 into main Jun 9, 2025
1 check failed
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a new database package with a PostgreSQL Docker image, adds a Prisma seed script and migration SQL for initializing the database schema, and includes supporting Docker scripts alongside updated documentation.

  • Adds a Prisma seed file and a new seeder generator in the Prisma schema
  • Provides migration SQL for creating Todos and Logs tables
  • Implements Docker Compose configuration and shell scripts for starting, stopping, and checking the PostgreSQL container, with accompanying documentation

Reviewed Changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated no comments.

Show a summary per file
File Description
lib/javascript/fullstack_demo/prisma/seed.ts New Prisma seed script creating todos and a log entry
lib/javascript/fullstack_demo/prisma/schema.prisma Added a new seeder generator configuration
lib/javascript/fullstack_demo/prisma/migrations/20250609182117_initial_schema/migration.sql Initial migration creating Todos and Logs tables
lib/javascript/fullstack_demo/package.json Updated dependencies and added a seed command
lib/javascript/fullstack_demo/docs/database-seeding.md Added documentation for running the seed script
lib/db/stop-postgres.sh Added script to stop the Postgres container
lib/db/status-postgres.sh Added script to check the status of the Postgres container
lib/db/start-postgres.sh Added script to start the Postgres container and wait for readiness
lib/db/package.json New package file for managing Docker scripts
lib/db/init-scripts/01-init-sample.sql Sample SQL initialization script for the container
lib/db/docker-compose.yml Docker Compose configuration for the PostgreSQL container
lib/db/README.md Documentation on how to use and manage the PostgreSQL Docker setup
lib/db/Dockerfile Dockerfile for building the PostgreSQL image

@anthonydmays anthonydmays deleted the feat/suppl_3 branch June 9, 2025 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant