dead8309 / AArenaTesting

A playground project to learn and experiment some features in nextjs

Home Page:https://algoarenatest.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AArena Testing

This is a simple project to learn and experiment some features of Next.js, NextAuth, Prisma, and Tailwind CSS.

Features

  • Next.js
  • Server Actions
  • Form Validation
  • FormState and FormStatus
  • Optimistic Updates
  • NextAuth (Google)
  • MongoDB
  • Prisma
  • Tailwind CSS
  • Formik
  • Yup

Prerequisites

Make sure you have the following installed before running the project:

  • Node.js and npm (Node Package Manager)
  • MongoDb atlas database (or another supported database for Prisma)

Getting Started

  1. Clone the repository:

    git clone https://github.com/dead8309/AArenaTesting.git
    cd AArenaTesting
  2. Install dependencies:

    npm install
  3. Set up your environment variables:

    Create a .env.local file in the root directory and add the following:

    NEXTAUTH_SECRET=secret
    DATABASE_URL="db url"
    GOOGLE_CLIENT_ID="GOOGLE_CLIENT_ID"
    GOOGLE_CLIENT_SECRET="GOOGLE_CLIENT_SECRET"
    NEXTAUTH_URL=http://localhost:3000
  4. Run database migrations:

    npx prisma migrate dev
  5. Start the development server:

    npm run dev

    The application will be available at http://localhost:3000.

Project Structure

  • app/: Pages and API routes
  • public/: Static assets
  • components/: Reusable React components
  • prisma/: Prisma database schema and configurations

Technologies Used

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

About

A playground project to learn and experiment some features in nextjs

https://algoarenatest.vercel.app


Languages

Language:TypeScript 98.3%Language:CSS 1.3%Language:JavaScript 0.4%