This is a Next.js project bootstrapped with create-next-app.
- Docker and Docker Compose
- Node.js (recommended version 22+)
- pnpm
- Clerk
- ngrok (for local development see Clerk docs)
- Clone the repository
- Run
pnpm installto install the dependencies
- Copy
.env.exampleto.envin the root of the project - Fill in your actual values in the
.envfile (see.env.examplefor required variables)
This project uses PostgreSQL v17 as the database, managed through Docker Compose for local development.
# Start the PostgreSQL database
docker compose up -d postgres
# Push the database schema
PRISMA_USER_CONSENT_FOR_DANGEROUS_AI_ACTION=1 pnpm prisma:reset
# Generate Prisma client
PRISMA_USER_CONSENT_FOR_DANGEROUS_AI_ACTION=1 pnpm prisma generateBasic Commands:
# Start database
docker compose up -d postgres
# Stop database
docker compose down
# View database logs
docker compose logs postgres
# Access database directly
docker compose exec postgres psql -U postgres -d coreliveAfter setting up the database, run the development server:
pnpm dev
# or
npm run dev
# or
yarn dev
# or
bun devOpen http://localhost:3011 with your browser to see the result.
You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.
This project uses next/font to automatically optimize and load Inter, a custom Google Font.
Need ngrok to recive create.user event webhook from Clerk in local.
like ngrok http --domain=foo.bar-ngrok.app 3011
This project includes an Electron desktop application that wraps the Next.js web app.
# Run the desktop app in development mode
pnpm electron:dev
# Run Electron directly (requires Next.js dev server to be running)
pnpm electron# Build for all platforms
pnpm electron:build
# Build for specific platforms
pnpm electron:build:win # Windows
pnpm electron:build:mac # macOS
pnpm electron:build:linux # LinuxThe built applications will be available in the dist-electron/ directory.