2025-12-14 13:33:43 -06:00
fix
2025-12-14 13:33:43 -06:00
2025-12-14 13:31:29 -06:00
2025-12-14 13:31:29 -06:00
2025-12-14 13:31:29 -06:00
2025-12-14 11:01:56 -06:00
2025-12-14 13:31:29 -06:00
2025-12-14 13:31:29 -06:00
2025-12-14 13:31:29 -06:00

Employee Records

Employee records management system built with Hono, Bun, and PocketBase.

Features

  • 🔐 Authentication via PocketBase
  • 📊 Dashboard with employee records and reports management
  • 🎨 Modern UI with Tailwind CSS
  • Fast server with Hono and Bun

Tech Stack

  • Backend: Hono (web framework) + Bun (runtime)
  • Frontend: Vanilla JavaScript + Tailwind CSS
  • Database/Auth: PocketBase (https://pocketbase.ccllc.pro)

Prerequisites

  • Bun installed on your system

Setup

  1. Install dependencies:
bun install
  1. Set environment variables (optional):
export POCKETBASE_URL=https://pocketbase.ccllc.pro
export PORT=3000
  1. Start the development server:
bun run dev

The server will start on http://localhost:3000

Project Structure

Employee_records/
├── src/
│   ├── server.ts          # Main Hono server entry point
│   ├── routes/
│   │   ├── auth.ts        # Authentication routes
│   │   └── api.ts         # API routes
│   └── middleware/
│       └── auth.ts        # Authentication middleware
├── public/
│   ├── index.html         # Login page
│   ├── dashboard.html     # Dashboard page
│   └── js/
│       ├── auth.js        # Authentication client logic
│       └── dashboard.js   # Dashboard logic
├── package.json
└── tsconfig.json

PocketBase Setup

Before using the application, ensure your PocketBase instance at https://pocketbase.ccllc.pro has:

  1. A users collection (or the default auth collection)
  2. User accounts created for login

The application will connect to this PocketBase instance for authentication.

Collections

The following collections will be set up later:

  • employee_records - Employee information
  • employee_reports - Employee reports

Development

  • Run the server: bun run dev
  • Type check: bun run type-check

License

See LICENSE file for details.

S
Description
No description provided
Readme Apache-2.0 71 KiB
Languages
JavaScript 52.4%
HTML 35%
TypeScript 12.6%