AccessHub is a React and TypeScript authentication frontend connected to a deployed FastAPI backend.
Frontend:
Backend API:
Related backend repository:
| Area | Status |
|---|---|
| React / TypeScript frontend | ✅ Complete |
| Login flow | ✅ Working |
| JWT token storage | ✅ Working |
| Protected dashboard | ✅ Working |
| Admin-only user list | ✅ Working |
| Role-based UI behaviour | ✅ Working |
| Loading and error states | ✅ Complete |
| Vercel deployment | ✅ Live |
| Render backend integration | ✅ Live |
| Frontend CI | ✅ Passing |
| Docker CI | ✅ Passing |
- User login flow
- JWT token storage
- Protected dashboard route
- Admin-only user list
- Role-based access behaviour
- Authenticated API requests
- API integration with deployed FastAPI backend
- Multi-page frontend routing
- Loading and error handling
- Responsive UI styling
- Vercel deployment
- Frontend and Docker CI workflows
| Area | Technologies |
|---|---|
| Frontend | React, TypeScript, Vite, React Router, CSS |
| Backend API | FastAPI, PostgreSQL, SQLAlchemy, JWT authentication |
| Deployment | Vercel, Render |
| DevOps / Tooling | Docker, GitHub Actions, Git, GitHub |
Clone the repository:
git clone https://github.com/Iris408/accesshub
cd accesshubInstall dependencies:
npm installCreate a .env file:
VITE_API_URL=https://mini-user-api.onrender.comRun locally:
npm run devBuild check:
npm run buildMore detailed project documentation is available in the docs/ folder.
| Document | Description |
|---|---|
| Setup Guide | Local setup, environment variables, build commands, and demo notes |
| Auth Flow | JWT login, token storage, protected routes, and admin-only access |
| Frontend Notes | Pages, UI behaviour, routing, loading states, and frontend improvements |
| Project Details | Architecture, related backend, limitations, future improvements, and learning notes |
| CI Notes | Frontend CI and Docker CI workflow notes |
AccessHub is a React and TypeScript authentication frontend demonstrating a complete JWT-based authentication and authorisation flow. It integrates with Secure User API to provide protected routing, role-based access, admin-only functionality, authenticated API requests, and production-style deployment using Vercel, Render, Docker, and GitHub Actions CI.
Built by Iris408


