Skip to content

DressOssr/form-builder

Repository files navigation

1. Install Dependencies

pnpm install

2. Environment Configuration

Create a .env file in the root directory:

DATABASE_URL="postgresql://USERNAME:PASSWORD@localhost:5432/TABLE_NAME"
JWT_SECRET="SECRET"
ADMIN_LOGIN="ADMIN_LOGIN"
ADMIN_PASSWORD="ADMIN_PASSWOEN"

3. Database Setup with Prisma

Generate Prisma Client:

pnpm prisma generate

Run Database Migrations:

pnpm prisma migrate dev

Open Prisma Studio (Optional):

pnpm prisma studio

4. Start Development Server

pnpm run dev

Open http://localhost:5173

Prisma Commands

# Generate Prisma Client
pnpm prisma generate

# Create a new migration
pnpm prisma migrate dev --name migration_name

# Reset database (⚠️ deletes all data)
pnpm prisma migrate reset

# Push schema without creating migration
pnpm prisma db push

# Open Prisma Studio
pnpm prisma studio

# Format schema file
pnpm prisma format

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages