Skip to content

laststance/corelive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Lint Test Typecheck E2E Tests

🚧 It is a work in progress 🚧

This is a Next.js project bootstrapped with create-next-app.

Getting Started

Prerequisites

Install dependencies

  1. Clone the repository
  2. Run pnpm install to install the dependencies

Environment Variables

  1. Create a .env.local file in the root of the project
  2. Set variables in .env.local following the src/env.mjs

Database Setup

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

Database Management

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

Development Server

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.

Ngrok

Need ngrok to recive create.user event webhook from Clerk in local.
like ngrok http --domain=foo.bar-ngrok.app 3000

Desktop Application (Electron)

This project includes an Electron desktop application that wraps the Next.js web app.

Electron Development

# Run the desktop app in development mode
pnpm electron:dev

# Run Electron directly (requires Next.js dev server to be running)
pnpm electron

Building Desktop App

# 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.

Contributors 2

  •  
  •