A powerful web-based editor for Prisma schemas, built with Next.js, Prisma, and Tailwind CSS.
- Visual Schema Editing: Edit your Prisma schema with a visual interface.
- Multiplayer Support: Collaborate with others in real-time (powered by Yjs).
- Prisma Integration: Seamlessly works with Prisma schemas.
- Modern UI: Built with Tailwind CSS and Radix UI for a clean and accessible interface.
- Node.js (v18 or later recommended)
- npm or yarn
- PostgreSQL database (for local development)
-
Clone the repository:
git clone <repository-url> cd prisma-editor
-
Install dependencies:
npm install
-
Set up environment variables: Copy
.env.exampleto.env(or create.env) and fill in the required values.cp .env.example .env
Required variables:
DATABASE_URL: Connection string for your PostgreSQL database.NEXTAUTH_SECRET: Secret for NextAuth.js.NEXTAUTH_URL: URL of your application (e.g.,http://localhost:4000).GITHUB_CLIENT_ID: GitHub OAuth Client ID.GITHUB_CLIENT_SECRET: GitHub OAuth Client Secret.NEXT_PUBLIC_YDOC_SIGNALING_SERVERS(optional): Comma-separated list of Yjs signaling WebSocket URLs. Defaults towss://signaling.yjs.devif unset.
-
Run database migrations:
npx prisma migrate dev
To start the development server:
npm run devThe application will be available at http://localhost:4000.
To build the application for production:
npm run buildTo start the production server:
npm startYou can also run the application using Docker Compose.
docker-compose up -d