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 (Electron) E2E Tests (Web) Storybook Testing

🚧 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. Copy .env.example to .env in the root of the project
  2. Fill in your actual values in the .env file (see .env.example for required variables)

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
PRISMA_USER_CONSENT_FOR_DANGEROUS_AI_ACTION=1 pnpm prisma:reset

# Generate Prisma client
PRISMA_USER_CONSENT_FOR_DANGEROUS_AI_ACTION=1 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: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.

Ngrok

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

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.

About

L1 cache for your mind.

Resources

Stars

Watchers

Forks

Contributors 2

  •  
  •