Skip to content

RezaPahlevi1/auth-management-system

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

39 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Auth Management System

An authentication and authorization system with role-based access control.
This project provides User and Admin functionalities with a clean UI and secure backend integration.


✨ Features

Register & Login with PostgreSQL

  • Role-based access control:
    • User: view own account (read-only)
    • Admin: view, create, edit, and delete accounts
  • Postman for API testing
  • Figma for design
  • Built with React Vite (frontend) and Express TypeScript (backend)

πŸ›  Tech Stack

  • Frontend: React Vite, TailwindCSS, Toaster
  • Backend: Express (TypeScript), PostgreSQL, JWT
  • Tools: Postman, Figma

πŸ‘₯ Team Members

  • azkahrtmi

    • Backend (Express + PostgreSQL)
    • Integration with frontend
  • RezaPahlevi1

    • Full Figma design
    • Majority of frontend implementation

πŸ“‚ Project Structure

.
β”œβ”€β”€ backend/        # Express + TypeScript + PostgreSQL
β”œβ”€β”€ frontend/       # React Vite + Tailwind
└── README.md

βš™οΈ Setup & Installation

Prerequisites

  • Node.js (v18+)
  • PostgreSQL installed and running

Backend

cd backend
npm install
npm run dev

Frontend

cd frontend
npm install
npm run dev

Database

  • Create a PostgreSQL database
  • Update DB credentials in backend config

πŸ”‘ Usage

  • Register as user or admin
  • Login with your credentials
  • Access is based on role:
    • User β†’ view personal account only
    • Admin β†’ manage all accounts (CRUD)

πŸ“Έ Screenshots

  • Design Figma
image

πŸ“‘ API Endpoints

Method Endpoint Description
POST /auth/register Register new user
POST /auth/login Login (user/admin)
GET /admin/users Admin: view all users
POST /admin/users Admin: create user
POST /admin/create-admin Admin: create admin
PUT /admin/users/{id} Admin: edit user
DELETE /admin/users/{id} Admin: delete user

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 75.7%
  • TypeScript 22.3%
  • HTML 1.1%
  • CSS 0.9%