Overview:
This app is a showcase of the capabilities of Next.js 14. It features a live demo and is a work in progress. The app includes a variety of features such as new Next.js 14 capabilities, data fetching, caching, and mutators, API routes, social media feed with likes and comments, OAuth 2.0 authentication, ORM using Prisma, PostgreSQL database on Supabase, UI components built using NextUI v2.0, and more. It is written in TypeScript and supports payments using Stripe.
Features:
- New Next.js 14: Utilizes the new features of Next.js 14.
- Data Fetching, Caching, and Mutation: Includes capabilities for data management.
- API Routes: Implements server-side API routes.
- OAuth 2.0 Authentication: Supports authentication through Google, GitHub, and Discord using NextAuth.js.
- ORM using Prisma: Implements an ORM system for database interactions.
- PostgreSQL Database on Supabase: Uses PostgreSQL database hosted on Supabase.
- UI Components with NextUI v2.0: Includes UI components built with NextUI v2.0.
- Dark Mode: Supports a dark mode feature using next-themes.
- Payments using Stripe: Enables payment processing through Stripe.
Installation:
Install dependencies:
npm install
Copy
.env.example
to.env.local
and update variables.Run the development server:
npm run dev
Open http://localhost:3000 in your browser to view the result.
Setup a PostgreSQL database, preferably using Supabase, and update the database URL in the
.env.local
file under theDATABASE_URL
key.Run the Prisma migrate script to initialize the schema.
Summary:
This app built with Next.js 14 serves as a showcase of various features and capabilities for developers. It includes advanced functionalities like data fetching, mutations, API routes, authentication, ORM usage, database management, UI components, dark mode support, and payment processing. The app is a work in progress and provides a live demo for users to explore the Next.js 14 functionalities.