Skip to content

Priveetee/Idea

Repository files navigation

Idea

Idea is a Bun monorepo for collecting and managing innovation ideas. It is built with Next.js, tRPC, Prisma, PostgreSQL, and Docker.

Production (Docker)

Docker is the recommended way to run the app.

docker compose up -d --build

The app is exposed on APP_PORT from .env (8080 by default).

Database persistence safety

To avoid data-loss-like incidents after redeploy, keep these values stable across versions:

  • COMPOSE_PROJECT_NAME
  • POSTGRES_VOLUME_NAME
  • DATABASE_URL (or DATABASE_NAME / DATABASE_USERNAME / DATABASE_PASSWORD)
  • EXPECTED_DATABASE_NAME

docker-entrypoint.sh validates the active database name before running Prisma migrations.

Production deploy script

bash scripts/deploy-prod.sh

With local uncommitted changes on server:

bash scripts/deploy-prod.sh --stash-dirty

One-line install and deploy

bash <(curl -fsSL https://raw.githubusercontent.com/Priveetee/Idea/main/scripts/install-stack.sh)

Isolated install example:

bash <(curl -fsSL https://raw.githubusercontent.com/Priveetee/Idea/main/scripts/install-stack.sh) -- --dir ~/idea --project-name idea-prod --app-port 8085 --db-port 5456

Stack

  • Next.js 16
  • Bun 1.3
  • tRPC 11
  • Prisma 7
  • PostgreSQL
  • Better Auth
  • Tailwind CSS
  • Docker / Docker Compose

Monorepo structure

  • apps/web: Next.js application and dashboard
  • packages/db: Prisma schema, migrations, generated client
  • packages/auth: authentication logic and env validation
  • packages/trpc: routers, procedures, and API context
  • packages/ui: shared UI components
  • packages/config: shared workspace configuration

Development

cp .env.example .env
bun install
bun run -F @repo/db prisma generate
bun run -F @repo/db prisma migrate dev
bun dev

Quality checks

bun run check:ws
bun run typecheck
bun run build

License

MIT. See LICENSE.

About

A modern, privacy-first platform for collecting and managing innovation ideas.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors