Skip to content

Full-stack Next.js 13 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.

License

yaseenmustapha/nextjs13-app

Repository files navigation

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

Live demo is up at nextjs13.app

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

Home and Feed pages

Features

  • Using new Next.js 13 Beta
  • New /app dir,
  • Routing, Layouts, Nested Layouts and Layout Groups
  • Data Fetching, Caching and Mutation
  • Uses client and server components from React 18
  • API Routes
  • Live social media feed with likes, comments, and profanity filter
  • Enhance social media posts using OpenAI API with GPT-3.5-Turbo model
  • OAuth 2.0 Authentication through Google, GitHub, and Discord using NextAuth.js
  • ORM using Prisma
  • PostgreSQL Database on Railway
  • UI Components built using NextUI v2.0
  • Styled using Tailwind CSS
  • Dark mode using next-themes
  • Payments using Stripe
  • Written in TypeScript

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.

License

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

About

Full-stack Next.js 13 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.

Topics

Resources

License

Stars

Watchers

Forks