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 install
to install the dependencies
- Create a
.env.local
file in the root of the project - Set variables in
.env.local
following the src/env.mjs
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
pnpm prisma:reset
# Generate Prisma client
pnpm prisma generate
Basic 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 corelive
After setting up the database, run the development server:
pnpm dev
# or
npm run dev
# or
yarn dev
# or
bun dev
Open http://localhost:3000 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 3000
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 # Linux
The built applications will be available in the dist-electron/
directory.