Getting Started

Quickstart

Deploy your AI-powered product in minutes

This quickstart guide will walk you through the process of setting up and deploying your application in just a few minutes.

By the end of this guide, you'll have your product live to share with the world.

ℹ️

Prerequisites:

Before you begin:- ✅ Make sure Docker Desktop is installed and running.

From Hello World to Production in 4 Steps

Our AI-native cloud platform handles everything automatically, so you can focus on shipping delightful products users love.

Step 1 — Deploy Your Frontend

Tech: Next.js 15 + Tailwind + App Router

Start with a modern frontend. Deploy your static or server-rendered Next.js site in seconds.

Simple web pod YAML snippet

application:
name:"nexlayer-app"
pods:
-name:prisma
image:"user-name/prisma:latest"
servicePorts:
-3000
vars:
DATABASE_URL:"postgresql://user:pass@db.pod:5432/mydb"

Step 2 — Add Auth + Database

Tech: Supabase (Auth + PostgreSQL)

Add real users and persistent data using Supabase. Easily store accounts, profiles, and content.

Add second pod for db, plus vars and secrets

pods:
-name:db
image:"postgres:14"
servicePorts:
-5432
vars:
POSTGRES_USER:user
POSTGRES_PASSWORD:pass
POSTGRES_DB:appdb

Step 3 — Use Prisma for Data Logic

Tech: Prisma ORM

Auto-generate your API with Prisma and define your database schema using elegant TypeScript models.

New backend pod + volume + env for database

pods:
-name:api
image:"ttl.sh/my-backend:1h"
path:/api
servicePorts:
-4000
vars:
DATABASE_URL:"postgresql://user:pass@db.pod:5432/appdb"

Step 4 — Plug in OpenAI

Tech: OpenAI API

Let your users ask questions, summarize notes, or chat with their data — right inside your app.

Add secret mount + env var for API key

# 🤖 OpenAI API wrapper (proxy or backend integration)
-name:openai
image:"user-name/openai:latest"
servicePorts:
-3000
vars:
OPENAI_API_KEY_PATH:"/var/secrets/openai/key.txt"
secrets:
-name:openai-key
data:sk-......
mountPath:"/var/secrets/openai"
fileName:key.txt

Try This Stack

Prebuilt: Next.js frontend, Supabase auth, PostgreSQL DB, Prisma backend, and OpenAI agent — all live in minutes.

Why Developers Love Nexlayer

Built for developers who want to ship faster, scale effortlessly, and skip the DevOps headaches.

Zero DevOps

Integrate AI models with zero friction. Built for modern AI applications.

Auto-Scaling

Integrate AI models with zero friction. Built for modern AI applications.

Stack-Agnostic

Integrate AI models with zero friction. Built for modern AI applications.

AI & ML Ready

Integrate AI models with zero friction. Built for modern AI applications.

Ready to simplify your deployment?

Join thousands of developers who are shipping faster with Nexlayer.

Was this article helpful to you?