• Stars
    star
    392
  • Rank 106,182 (Top 3 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created 10 months ago
  • Updated 5 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Build a SaaS AI Companion with Next.js 13, React, Tailwind, Prisma, Stripe | Full Tutorial 2023

Copy of Copy of Copy of Copy of Fullstack Twitter Clone (1)

This is a repository for Build a SaaS AI Platform with Next.js 13, React, Tailwind, Prisma, Stripe | Full Tutorial 2023.

VIDEO TUTORIAL

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=

PINECONE_API_KEY=
PINECONE_ENVIRONMENT=
PINECONE_INDEX=

UPSTASH_REDIS_REST_URL=
UPSTASH_REDIS_REST_TOKEN=

NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME=

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

Seed categories:

node scripts/seed.ts

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

More Repositories

1

next13-airbnb-clone

TypeScript
1,767
star
2

next13-ai-saas

TypeScript
1,059
star
3

next13-discord-clone

TypeScript
973
star
4

next13-ecommerce-admin

TypeScript
856
star
5

next13-messenger

TypeScript
830
star
6

next-auth-v5-advanced-guide

TypeScript
812
star
7

notion-clone-tutorial

TypeScript
795
star
8

next13-lms-platform

TypeScript
676
star
9

next13-spotify

TypeScript
636
star
10

next-netflix-tutorial

TypeScript
586
star
11

next13-ecommerce-store

TypeScript
523
star
12

next13-trello

TypeScript
513
star
13

twitter-clone

TypeScript
372
star
14

next14-twitch-clone

TypeScript
244
star
15

ts-node-mongo-rest-api-tutorial

Repository for a REST API using MongoDB, Node.js and TypeScript
TypeScript
223
star
16

next14-miro-clone

TypeScript
205
star
17

python-tensorflow-google

Notes taken from Google Machine Learning Course provided to public for practice & correction.
Python
187
star
18

passport-tutorial

This is a repository for my Medium.com article
JavaScript
170
star
19

js-blog-tutorial

This is a tutorial for a Medium story
JavaScript
95
star
20

js-chat-tutorial

A repository for chat app tutorial using React.js, Socket.io and Node.js
JavaScript
53
star
21

file-upload-tutorial

A repository for Medium.com tutorial
JavaScript
50
star
22

AntonioErdeljac

22
star
23

messenger-video

TypeScript
20
star
24

prisma-db-starter

TypeScript
18
star
25

carrotDB

A JSON based database for Node.js ๐Ÿฅ•
JavaScript
17
star
26

next-auth-monogdb

TypeScript
14
star
27

tailwind-labs-tutorial

JavaScript
10
star
28

actions-demo

TypeScript
9
star
29

fl0-clerk-next

TypeScript
9
star
30

nextjs-blog

JavaScript
9
star
31

tailwind-css-recipes

JavaScript
8
star
32

workshop-lucia-auth

TypeScript
8
star
33

NearChat

Chatting app based on your location using React.js & Node.js
JavaScript
7
star
34

angular-exercise

Repository for exercise with Angular 9
TypeScript
5
star
35

backend-recreation

TypeScript
5
star
36

next13-lms

TypeScript
4
star
37

problem-1

TypeScript
4
star
38

citycoin-web

CSS
3
star
39

design-practice

TypeScript
3
star
40

ts-autocomplete

TypeScript
3
star
41

js-pokedex

A pokedex app built with Webpack and React.js.
JavaScript
2
star
42

youtube-clone

Youtube clone
JavaScript
2
star
43

products-gtm-ts

TypeScript
2
star
44

problem-2

TypeScript
2
star
45

wer2018

2
star
46

webrtc-video-chat

JavaScript
2
star
47

vue-practice

HTML
1
star
48

expo-stack-navigator

Expo & React Native practice
JavaScript
1
star
49

trainingtogether-backend

JavaScript
1
star
50

typescript-basics

TypeScript
1
star
51

Boxlio

JavaScript
1
star
52

webassembly-demo

JavaScript
1
star
53

codeburn-io

Gatsby starter for creating a blog
1
star
54

React-Native-Superagent

Repository for React Native project w/ Superagent Ajax calls
JavaScript
1
star
55

peerjs-react-chat

TypeScript
1
star
56

workshop-3

TypeScript
1
star
57

javascript-dom

Repo for practicing DOM manipulation with JS
JavaScript
1
star
58

trainingtogether-app

JavaScript
1
star
59

JobScheduler

Repository for a job scheduler assignment
JavaScript
1
star
60

flow-wizard

TypeScript
1
star