Skip to content

Latest commit

 

History

History
110 lines (73 loc) · 3.57 KB

README.md

File metadata and controls

110 lines (73 loc) · 3.57 KB

Visionary AI

Visionary AI - Landing screen | haptichash

Visionary AI - Dashboard screen | haptichash

Visionary AI - Image generation screen | haptichash

Visionary AI - Code generation screen | haptichash

Visionary AI - Music generation screen | haptichash

Visionary AI - Conversation screen | haptichash

Visionary AI - Video generation screen | haptichash

Visionary AI - Crisp Chatbot screen | haptichash

Visionary AI - Upgrade plan screen | haptichash

This application is built using Next.js 13, React, Tailwind, Prisma and Stripe.

Key Features:

  • Tailwind design
  • Tailwind animations and effects
  • Full responsiveness
  • Clerk Authentication (Email, Google, 9+ Social Logins)
  • Client form validation and handling using react-hook-form
  • Server error handling using react-toast
  • Image Generation Tool (Open AI)
  • Video Generation Tool (Replicate AI)
  • Conversation Generation Tool (Open AI)
  • Music Generation Tool (Replicate AI)
  • Page loading state
  • Stripe monthly subscription
  • Free tier with API limiting
  • How to write POST, DELETE, and GET routes in route handlers (app/api)
  • How to fetch data in server react components by directly accessing database (WITHOUT API! like Magic!)
  • How to handle relations between Server and Child components!
  • How to reuse layouts
  • Folder structure in Next 13 App Router

Prerequisites

Node version 18.x.x

Cloning the repository

git clone https://github.com/AntonioErdeljac/next13-ai-saas.git

Install packages

npm i

Setup .env file

NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=
CLERK_SECRET_KEY=

NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up
NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL=/dashboard
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL=/dashboard

OPENAI_API_KEY=
REPLICATE_API_TOKEN=

DATABASE_URL=

STRIPE_API_KEY=
STRIPE_WEBHOOK_SECRET=

NEXT_PUBLIC_APP_URL="http://localhost:3000"

Setup Prisma

Add MySQL Database (I used PlanetScale)

npx prisma db push

Start the app

npm run dev

Available commands

Running commands with npm npm run [command]

command description
dev Starts a development instance of the app

Known issues

The following things are not working in Vercel production due to the current plan's serverless function execution timeout of 10 seconds, and the models take much longer to process the information. However, if you clone the repo, it will work as expected on your localhost.

  • Music generation
  • Video generation