No description
  • TypeScript 96.4%
  • CSS 2.7%
  • Dockerfile 0.8%
Find a file
Stefan Bohmann a141be866f
All checks were successful
CI / build (push) Successful in 2m3s
Deploy / deploy (push) Successful in 1m19s
chore: remove migration service from Docker Compose and streamline deploy workflow by eliminating migration checks
2026-06-20 00:26:43 +02:00
.forgejo/workflows chore: remove migration service from Docker Compose and streamline deploy workflow by eliminating migration checks 2026-06-20 00:26:43 +02:00
app Initialize project structure with Next.js, Prisma, PostgreSQL, and Docker setup. Added essential configuration files, environment variables, and initial components for managing smart home automations. Implemented basic authentication and CRUD operations for automations and transcripts. 2026-05-10 16:34:03 +02:00
components Initialize project structure with Next.js, Prisma, PostgreSQL, and Docker setup. Added essential configuration files, environment variables, and initial components for managing smart home automations. Implemented basic authentication and CRUD operations for automations and transcripts. 2026-05-10 16:34:03 +02:00
lib Initialize project structure with Next.js, Prisma, PostgreSQL, and Docker setup. Added essential configuration files, environment variables, and initial components for managing smart home automations. Implemented basic authentication and CRUD operations for automations and transcripts. 2026-05-10 16:34:03 +02:00
prisma Initialize project structure with Next.js, Prisma, PostgreSQL, and Docker setup. Added essential configuration files, environment variables, and initial components for managing smart home automations. Implemented basic authentication and CRUD operations for automations and transcripts. 2026-05-10 16:34:03 +02:00
public Initialize project structure with Next.js, Prisma, PostgreSQL, and Docker setup. Added essential configuration files, environment variables, and initial components for managing smart home automations. Implemented basic authentication and CRUD operations for automations and transcripts. 2026-05-10 16:34:03 +02:00
scripts Initialize project structure with Next.js, Prisma, PostgreSQL, and Docker setup. Added essential configuration files, environment variables, and initial components for managing smart home automations. Implemented basic authentication and CRUD operations for automations and transcripts. 2026-05-10 16:34:03 +02:00
.env.example Initialize project structure with Next.js, Prisma, PostgreSQL, and Docker setup. Added essential configuration files, environment variables, and initial components for managing smart home automations. Implemented basic authentication and CRUD operations for automations and transcripts. 2026-05-10 16:34:03 +02:00
.gitignore Initialize project structure with Next.js, Prisma, PostgreSQL, and Docker setup. Added essential configuration files, environment variables, and initial components for managing smart home automations. Implemented basic authentication and CRUD operations for automations and transcripts. 2026-05-10 16:34:03 +02:00
components.json Initialize project structure with Next.js, Prisma, PostgreSQL, and Docker setup. Added essential configuration files, environment variables, and initial components for managing smart home automations. Implemented basic authentication and CRUD operations for automations and transcripts. 2026-05-10 16:34:03 +02:00
compose.prod.yml chore: remove migration service from Docker Compose and streamline deploy workflow by eliminating migration checks 2026-06-20 00:26:43 +02:00
docker-compose.yml Initialize project structure with Next.js, Prisma, PostgreSQL, and Docker setup. Added essential configuration files, environment variables, and initial components for managing smart home automations. Implemented basic authentication and CRUD operations for automations and transcripts. 2026-05-10 16:34:03 +02:00
docker-entrypoint.sh Initialize project structure with Next.js, Prisma, PostgreSQL, and Docker setup. Added essential configuration files, environment variables, and initial components for managing smart home automations. Implemented basic authentication and CRUD operations for automations and transcripts. 2026-05-10 16:34:03 +02:00
Dockerfile chore: enhance Dockerfile with npm fetch retry options and caching for improved dependency installation 2026-06-19 22:40:11 +02:00
next-env.d.ts Initialize project structure with Next.js, Prisma, PostgreSQL, and Docker setup. Added essential configuration files, environment variables, and initial components for managing smart home automations. Implemented basic authentication and CRUD operations for automations and transcripts. 2026-05-10 16:34:03 +02:00
next.config.ts Initialize project structure with Next.js, Prisma, PostgreSQL, and Docker setup. Added essential configuration files, environment variables, and initial components for managing smart home automations. Implemented basic authentication and CRUD operations for automations and transcripts. 2026-05-10 16:34:03 +02:00
package-lock.json Initialize project structure with Next.js, Prisma, PostgreSQL, and Docker setup. Added essential configuration files, environment variables, and initial components for managing smart home automations. Implemented basic authentication and CRUD operations for automations and transcripts. 2026-05-10 16:34:03 +02:00
package.json Initialize project structure with Next.js, Prisma, PostgreSQL, and Docker setup. Added essential configuration files, environment variables, and initial components for managing smart home automations. Implemented basic authentication and CRUD operations for automations and transcripts. 2026-05-10 16:34:03 +02:00
postcss.config.mjs Initialize project structure with Next.js, Prisma, PostgreSQL, and Docker setup. Added essential configuration files, environment variables, and initial components for managing smart home automations. Implemented basic authentication and CRUD operations for automations and transcripts. 2026-05-10 16:34:03 +02:00
prisma.config.ts Initialize project structure with Next.js, Prisma, PostgreSQL, and Docker setup. Added essential configuration files, environment variables, and initial components for managing smart home automations. Implemented basic authentication and CRUD operations for automations and transcripts. 2026-05-10 16:34:03 +02:00
README.md Initialize project structure with Next.js, Prisma, PostgreSQL, and Docker setup. Added essential configuration files, environment variables, and initial components for managing smart home automations. Implemented basic authentication and CRUD operations for automations and transcripts. 2026-05-10 16:34:03 +02:00
tsconfig.json Initialize project structure with Next.js, Prisma, PostgreSQL, and Docker setup. Added essential configuration files, environment variables, and initial components for managing smart home automations. Implemented basic authentication and CRUD operations for automations and transcripts. 2026-05-10 16:34:03 +02:00
tsconfig.tsbuildinfo Initialize project structure with Next.js, Prisma, PostgreSQL, and Docker setup. Added essential configuration files, environment variables, and initial components for managing smart home automations. Implemented basic authentication and CRUD operations for automations and transcripts. 2026-05-10 16:34:03 +02:00

Smart Home Automations

Fullstack Next.js app for storing and searching smart home automations shown in YouTube videos.

Stack

  • Next.js 16 (App Router, TypeScript)
  • Prisma ORM 7
  • PostgreSQL
  • Tailwind CSS
  • Server Actions
  • Docker + Docker Compose

Setup

  1. Copy the environment template:

    cp .env.example .env
    
  2. Start everything:

    docker compose up --build
    
  3. Open the app:

Database Migration

Initial migration is included in prisma/migrations. The app container runs prisma migrate deploy on startup.

Seed Data

After the stack is up, seed sample records:

docker compose exec app npm run prisma:seed

YouTube Playlist Sync

The sync job pulls every video from a YouTube playlist, fetches its transcript, and stores it as a ProcessedVideo row. Automations are not extracted automatically while testing — instead, the admin UI offers a copy button so you can paste the prompt + transcript into your own ChatGPT account and add the resulting automations manually.

Set these variables in .env:

YOUTUBE_API_KEY=
YOUTUBE_PLAYLIST_ID=

Run the importer manually:

node scripts/syncPlaylist.ts

Run it through Docker Compose:

docker compose run --rm sync

Then open the admin area and head to Transcripts (/admin/transcripts) to copy the prompt + transcript into ChatGPT. Use Mark as processed to keep the queue clean once you have entered the resulting automations.