GithubHelp home page GithubHelp logo

vocagame-auth's Introduction

Vocagame Auth

Tech Stack

  • Next v14 + Typescript (Frontend Framework)
  • Tailwind CSS + Shadcn UI + Lucide Icon (CSS Utility)
  • React Hot Toast (Notification)
  • Next Auth v5 (Auth)
  • Neon (Serverless PosgreSql)
  • Prisma ORM (ORM for working with Serverless PosgreSql)
  • React Hook Form + Zod (Validation Library)
  • Eslint (Code Formatter Library)

Features

  • Using Next v14 and Typescript
  • Tailwind design with Shadcn UI
  • Full responsiveness
  • Swith between theme (blue, orange, or system)
  • Implementing toast for success and error message
  • Using Neon (Serverless PostgreSQL) for store registered data
  • Using Prisma ORM for working with Neon (Serverless PosgreSQL)
  • Credentials provider using Next Auth
  • Login component
  • Register component
  • Impelementing server actions Next v14
  • Implementing middleware for protected and unprotected route
  • Implementing session with Next Auth
  • Implementing session expired in 1 minute
  • Edit profile in profile page
  • Validate all forms before submitting

Prerequisites

  • Install Node v18.18.0
  • Install Yarn v1.22.19

Run Locally

Clone this repository.

  [email protected]:nzrmm/vocagame-auth.git

Install dependencies.

  yarn

Setup .env file with my configuration

DATABASE_URL="postgresql://nzrmm:0Dy9upScaVKr@ep-rough-king-a11udu94-pooler.ap-southeast-1.aws.neon.tech/vocagame-auth?sslmode=require"
AUTH_SECRET="8ddd4c1e16d4680a3f35d50c0ced1aa1"

Setup Prisma

npx prisma generate
npx prisma db push --force-reset

Run development server

  yarn dev

vocagame-auth's People

Contributors

nzrmm avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.