Skip to content

Opensource Community Version of Lunox Forms. All Features included for people who wants to self host their own Forms Solutions. Google Forms, Microsoft Forms, Type Forms Replacement. Contributions are Appreciated.

License

Notifications You must be signed in to change notification settings

lunox-dev/forms-community

Repository files navigation

Lunox Forms

Lunox Forms is a powerful, self-hostable form builder built with Next.js, Prisma, and TailwindCSS. It allows you to create beautiful forms, collect responses, and manage data efficiently.

Features

  • Drag-and-Drop Builder: Create forms easily.
  • AI generation: Generate forms with AI.
  • Dashboard: View and manage form responses.
  • Self-Hostable: Full control over your data.
  • Dynamic Theming: Customizable visuals.

Tech Stack

  • Framework: Next.js 14+ (App Router & Pages Router)
  • Database: PostgreSQL
  • ORM: Prisma
  • Auth: NextAuth.js
  • Styling: TailwindCSS
  • Language: TypeScript

Getting Started

Prerequisites

  • Node.js (v18 or higher)
  • PostgreSQL database
  • npm or pnpm

Installation

  1. Clone the repository

    git clone <your-repo-url>
    cd forms
  2. Install dependencies

    npm install
    # or
    pnpm install
  3. Environment Configuration Copy the example environment file and update it with your credentials:

    cp .env.example .env

    Update the following variables in .env:

    • DATABASE_URL: Your PostgreSQL connection string.
    • NEXTAUTH_SECRET: Generate a random string (e.g., openssl rand -base64 32).
    • NEXTAUTH_URL & NEXT_PUBLIC_API_URL: Your application URL (e.g., http://localhost:3000).
    • NEXT_PUBLIC_APP_URL: The base URL for your application (used for email assets).
    • SMTP_*: Email server details for sending magic links.
    • GOOGLE_*: Google OAuth credentials (optional).
  4. Database Setup Run the Prisma migrations to set up your database schema:

    npx prisma generate
    npx prisma db push
  5. Run the application

    npm run dev

    The app will be available at http://localhost:3000.

Configuration

  • CORS: By default, CORS allows all origins. To restrict this, set the ALLOWED_ORIGINS environment variable (comma-separated).

License

This project is licensed under a custom license by Lunox (Private) Limited. See the LICENSE file for details.

About

Opensource Community Version of Lunox Forms. All Features included for people who wants to self host their own Forms Solutions. Google Forms, Microsoft Forms, Type Forms Replacement. Contributions are Appreciated.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages