Hendrixer/fullstack-ai-nextjs
حول
This is a companion repo for the Build an AI Powered Fullstack App with Next.js, v3 course on Frontend Masters. This application is built from scratch throughout the course. The main branch contains a final version of the application similar to the one built in the course. The other branches in the repo are code checkpoints which can be used as a starting point for specific lessons.
التعلّم والتعليمالنمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- ٠
- خلال 15 يومًا
- ٠
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصلThis is a companion repo for the Build an AI Powered Fullstack App with Next.js, v3 course on Frontend Masters. This application is built from scratch throughout the course. The main branch contains a final version of the application similar to the one built in the course. The other branches in the repo are code checkpoints which can be used as a starting point for specific lessons.
Getting Started
The course covers the full process of building and deploying the application. The steps below summarize a few of the key requirements.
Creating the Initial Project
[!IMPORTANT]
Some dependencies used later in the course have peer dependency issues can can no longer be installed through the CLI. We recommend using thestartbranch to ensure you have the correct versions of all dependencies
git clone https://github.com/Hendrixer/fullstack-ai-nextjs.git
cd fullstack-ai-nextjs
git checkout start
npm install --legacy-peer-deps
npm run dev # tests your installation an opens the basic app at http://localhost:3000
Install Clerk
Clerk is the third-party authentication provider for the application
npm i @clerk/nextjs
Add Clerk secrets to .env.local
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=pk_test_XXXXXXXX
CLERK_SECRET_KEY=sk_test_XXXXXX
NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up
NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL=/journal
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL=/new-user
[!IMPORTANT]
PlanetScale has removed their free tier offering. More info. You can still complete the course with a paid PlanetScale plan. See below for alternatives.
PlanetScale Serverless SQL Database
- Create a PlanetScale Database
- Install pscale CLI
- Use the CLI to connect to the DB:
pscale auth login - Create a
devdatabase branch:pscale branch create mood dev - Start the connection:
pscale connect mood dev --port 3309
PlanetScale Alternatives
There are several serverless database alternatives to PlanetScale include Neon, Turso, Supabase, and CockroachDB.
Neon has a branching feature similar to PlanetScale that will be in closer alignment to this course. Follow the Prima + Neon setup guide.
Prisma ORM
- Install Prisma Client:
npm i @prisma/client - Install Prisma as dev dependency:
npm i prisma --save-dev - Initialize Prisma:
npx prisma init
OpenAI API Account Setup
- Create an openai.com account
- Select the
APIApp. - Create an API Key
- Copy/Paste the key into your into
.env.localusing the variableOPENAI_API_KEY
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…
