Skip to content

raunnieo/ZenStreet.ai

Repository files navigation

ZenStreet.ai multi-step forms

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

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying

page.tsx

. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.

Project Structure

.gitignore
.next/
.swc/
components.json
eslint.config.mjs
next-env.d.ts
next.config.ts
package.json
postcss.config.mjs
public/
README.md
src/
    app/
    components/
    context/
    forms/
    hooks/
    lib/
    utils/
tailwind.config.js
tailwind.config.ts
tsconfig.json

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.


Feel free to customize the content as needed for your project.
Feel free to customize the content as needed for your project.

Similar code found with 2 license types

raunnieo: also add about the collaboration when the session Link copied and shared, on any other device, the remote user can also edit on realtime (a collaborative form filling feature)

Next.js API routes to simulate real-time collaboration by periodically updating form state.


Workspace: Collecting workspace information

Sure, here is an updated README file for your project:

```markdown
# Project Name

This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).

## Getting Started

First, run the development server:

```bash
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying

page.tsx

. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.

Project Structure

.gitignore
.next/
    app-build-manifest.json
    build/
        chunks/
    build-manifest.json
    cache/
        .rscinfo
    fallback-build-manifest.json
    package.json
    react-loadable-manifest.json
    server/
        app/
        ...
    static/
        chunks/
        ...
    trace
    transform.js
    types/
.swc/
    plugins/
components.json
eslint.config.mjs
next-env.d.ts
next.config.ts
package.json
postcss.config.mjs
public/
README.md
src/
    app/
    components/
    context/
    forms/
    hooks/
    lib/
    utils/
tailwind.config.js
tailwind.config.ts
tsconfig.json

Collaboration Feature

This project includes a collaborative form filling feature. When a session link is copied and shared, the remote user can also edit the form in real-time. This is achieved using Next.js API routes to simulate real-time collaboration by periodically updating the form state.

How It Works

  1. Session Initialization: When a user starts filling out the form, a unique session ID is generated and appended to the URL.
  2. Joining a Session: When the session link is shared and opened on another device, the remote user joins the same session.
  3. Real-Time Updates: Both users can edit the form, and changes are synchronized in real-time using periodic updates to the form state.

Key Files

FormContext.tsx

: Manages the form state and synchronization logic.

route.ts

: Contains the API routes for handling form state updates and session management.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.