Skip to content

onemahmoudadel/auth-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auth App

A simple project for Basic authentication.

Tech Stack

Hono Js : Express Js alternative react vite bunjs lucia auth typescript shadcnui zod tailwindcss sqlite reactrouter reacthookform reactquery prisma

Demo

prisma

Features

  • Register: Add a new user.
  • Login login in existing User.
  • logout: invalidating user session and remove session cookie
  • Validate requests check for the session cookie, validate it.

Learning Objectives

  • Understand a basic Session Authentication
  • Finish a small project in one day
  • Be familiar with Honojs, lucia and tanstack query

Instructions

1. Clone the repository

git clone https://github.com/onemahmoudadel/auth-app.git

2. Install server dependencies

cd auth-app
npm install

3. Initialize the database

npx prisma migrate dev --name init
npx prisma generate
npm run dev

3. Install frontend dependencies

open new terminal

cd auth-app/fontend
npm install

5. Run the dev server

npm run dev

6. Open the app in your browser

open http://localhost:5173

About

A simple project for Basic authentication.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published