CodesPanda
Documentation

Alpine Admin React docs

Everything you need to install, customise and deploy Alpine Admin React: setup, scripts, folder layout, theming and hosting.

ReactViteTailwind CSSTypeScript

Screenshots

Alpine Admin React — Dashboard
Dashboard
Alpine Admin React — Employee directory
Employee directory
Alpine Admin React — Attendance
Attendance
Alpine Admin React — Leave management
Leave management
Alpine Admin React — Payroll
Payroll
Alpine Admin React — Performance reviews
Performance reviews

Click a screenshot to open it full size, or explore everything in the live preview.

Quick start

You need Node.js 20 or newer and npm. Clone the repository, install the dependencies and start the dev server:

Terminal
git clone https://github.com/codespanda/Alpine-Admin-React.git
cd Alpine-Admin-React
npm install
npm run dev

Then open http://localhost:5173. Changes reload instantly. You can also download the code as a ZIP from GitHub (Code → Download ZIP).

Scripts

npm run devStart the Vite dev server with hot reload
npm run buildType-check and build the production site into dist/
npm run previewServe the built dist/ folder locally to check it
npm run lintLint the code with ESLint

Project structure

Built with Vite and TypeScript. The parts you'll work in most:

Folders
src/
  app/
    (admin)/           One folder per screen with a page.tsx: dashboard, employees,
                       departments, attendance, leaves, payroll, performance,
                       timesheet, shifts, training, reports, settings and more
    (auth)/            Login, register, password reset and email verification
    globals.css        Tailwind v4 theme and CSS variables
  features/            Shared module logic: dashboard, employees, departments,
                       attendance, leaves
  components/          Layout and shadcn/ui primitives
  constants/
    navigation.ts      Sidebar items
    mock-data.ts       Sample records
  stores/              Zustand stores
  services/            Data access layer, ready to point at an API
  providers/  hooks/  lib/  types/
  docs/                The in-app documentation pages

Customise the content

src/constants/mock-data.tsSample employees and records used by the features.
src/constants/navigation.tsSidebar sections and links.
src/services/Replace the mock calls with your API.
src/app/(admin)/One folder per screen (30 in total), with forms built on React Hook Form + Zod.

Colors and theme

src/app/globals.cssColors are CSS variables mapped into the Tailwind v4 @theme block, with light and dark modes.
Dark mode is built in: each color has a light and a dark value, so keep both in sync when you rebrand.

Pages and routing

React Router: routes are declared in src/lib/router.tsx and point at the page.tsx files in src/app/(admin)/ and src/app/(auth)/. The sidebar reads src/constants/navigation.ts.

Deployment

npm run build writes a static site to dist/, so it runs on any static host. The repository is set up for GitHub Pages:

  1. 1In the repository, open Settings → Pages and set Source to GitHub Actions.
  2. 2Push to the default branch. The workflow in .github/workflows/ builds the site and publishes it.
  3. 3To use your own domain, add it under Settings → Pages → Custom domain.
Netlify, Vercel or Cloudflare PagesImport the repository and use build command npm run build with output folder dist.
The deploy workflow copies index.html to 404.html, so deep links keep working on GitHub Pages.

Component reference

Alpine Admin React ships with its own in-app documentation covering every component, layout and pattern, with live examples. Open it next to your code while you build.

Open the component docs

License

Alpine Admin React is free and released under the MIT license. Use it for personal and commercial projects, including client work, with no attribution required beyond keeping the license notice in the code.

Want it set up for you?

We can customise Alpine Admin React with your content and branding, connect it to your backend and deploy it.