yaseenmustapha / nextjs14-app

Full-stack Next.js 14 application. Uses React 18 client & server components, TypeScript, Prisma ORM, Railway PostgreSQL database, NextAuth.js OAuth 2.0 authentication, OpenAI API GPT-3.5-Turbo, and Stripe payments.
https://nextjs14-showcase.vercel.app
GNU Affero General Public License v3.0
295 stars 60 forks source link
gpt-35-turbo nextauth nextjs nextui oauth2 openai openai-api postgresql prisma railway react reactjs stripe tailwindcss typescript

This is an app built to showcase the capabilities of Next.js 14.

Live demo is up at nextjs14-showcase.vercel.app

Warning This app is a work in progress. Site may be unstable.

Home Page (Desktop) Social Media Feed (Mobile)
Screenshot 2024-05-22 at 10 10 41 PM IMG_0675

Features

Run locally

  1. Install dependencies
npm install
  1. Copy .env.example to .env.local and update variables:
cp .env.example .env.local
  1. Run the development server:
npm run dev

Open http://localhost:3000 with your browser to see the result.

Database setup

  1. Setup a PostgreSQL database. I recommend using Supabase as they have a great free tier and is easy to setup.

  2. Put your database URL in the .env.local file under the DATABASE_URL key.

  3. Run the Prisma migrate script to initialize the schema:

npm run migrate:dev

License

Licensed under the GNU Affero General Public License v3.0.