In this quickstart guide, you’ll use Assembly to generate a UI component, create a Next.js application, and deploy it - all in about 5 minutes!

Make sure you have access to Assembly before getting started.

Step 1: Open Assembly and Create a Session

1

Launch Assembly

Open the Assembly application in your browser.

2

Select the Default UI Blueprint

In the blueprints scroller, find and select the “Assembly UI Demos”.

3

Create a New Session

Click on “Create New Session” to start a new project based on the UI Blueprint.

Step 2: Generate a UI Component

1

Request a UI Example

In the chat interface, type: “Show me some options of what I can build”

2

Request Assembly Generate the Component

Assembly will generate a react component. You’ll see it appear in the Fragment Viewer.

3

Preview the Component

Click the “Preview” button in the Fragment Viewer to see how your component looks.

Step 3: Set Up a Next.js Application

1

Ask for Deployment Instructions

In the chat, ask: “How do I deploy this to a Next.js application?”

2

Follow the Instructions

Assembly will provide step-by-step instructions. Typically, it will suggest:

  1. Creating a new Next.js app
  2. Installing necessary dependencies
  3. Setting up the project structure

Step 4: Run Your Application

1

Start the Development Server

In your terminal, run:

npm run dev
2

View Your Application

Open your browser and go to http://localhost:3000. You should see your dashboard component live!

Congratulations! 🎉

You’ve just built and deployed a UI component using Assembly and Next.js. This is just the beginning of what you can do with Assembly.

Next Steps