{"id":46165205,"url":"https://github.com/tyecode/nonsavang-temple--web-client","last_synced_at":"2026-03-02T12:04:16.171Z","repository":{"id":224475560,"uuid":"759338457","full_name":"tyecode/nonsavang-temple--web-client","owner":"tyecode","description":"A Next.js and Tailwind CSS-based website for managing expenses and incomes, featuring a user-friendly dashboard for efficient financial tracking.","archived":false,"fork":false,"pushed_at":"2025-08-09T15:39:23.000Z","size":2984,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-25T00:43:01.687Z","etag":null,"topics":["dashboard","income-and-expenses","nextjs","shadcn-ui","tailwindcss"],"latest_commit_sha":null,"homepage":"https://nonsavang-temple.tyecode.space/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tyecode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-18T10:10:55.000Z","updated_at":"2025-08-09T15:39:23.000Z","dependencies_parsed_at":"2024-03-30T06:20:37.139Z","dependency_job_id":"ea8a307f-9337-4365-8832-647fee3a42ba","html_url":"https://github.com/tyecode/nonsavang-temple--web-client","commit_stats":null,"previous_names":["tyecode/abbeyard","tyecoder/nonsavang-temple--web-client","tyecode/nonsavang-temple--web-client"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tyecode/nonsavang-temple--web-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyecode%2Fnonsavang-temple--web-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyecode%2Fnonsavang-temple--web-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyecode%2Fnonsavang-temple--web-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyecode%2Fnonsavang-temple--web-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tyecode","download_url":"https://codeload.github.com/tyecode/nonsavang-temple--web-client/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyecode%2Fnonsavang-temple--web-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30001652,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T11:09:27.951Z","status":"ssl_error","status_checked_at":"2026-03-02T11:08:53.255Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dashboard","income-and-expenses","nextjs","shadcn-ui","tailwindcss"],"created_at":"2026-03-02T12:04:15.561Z","updated_at":"2026-03-02T12:04:16.163Z","avatar_url":"https://github.com/tyecode.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg width=\"84\" alt=\"Nonsavang Temple Logo\" src=\"./public/logo.png\"\u003e\n  \u003ch1 align=\"center\"\u003eNonsavang Temple\u003c/h1\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n A comprehensive Income \u0026 Expense management system for Nonsavang Temple built with Next.js, TypeScript, and Supabase.\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#features\"\u003e\u003cstrong\u003eFeatures\u003c/strong\u003e\u003c/a\u003e ·\n  \u003ca href=\"#tech-stack\"\u003e\u003cstrong\u003eTech Stack\u003c/strong\u003e\u003c/a\u003e ·\n  \u003ca href=\"#demo\"\u003e\u003cstrong\u003eDemo\u003c/strong\u003e\u003c/a\u003e ·\n  \u003ca href=\"#clone-and-run-locally\"\u003e\u003cstrong\u003eClone and run locally\u003c/strong\u003e\u003c/a\u003e ·\n  \u003ca href=\"#project-structure\"\u003e\u003cstrong\u003eProject Structure\u003c/strong\u003e\u003c/a\u003e ·\n  \u003ca href=\"#license\"\u003e\u003cstrong\u003eLicense\u003c/strong\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003cbr/\u003e\n\n## Features\n\n### 🔐 Authentication \u0026 User Management\n\n- Multi-role authentication system (Admin, Holder, User, Super Admin)\n- Secure user registration and login with Supabase Auth\n- Role-based access control with protected routes\n- User profile management with avatar support\n\n### 💰 Financial Management\n\n- **Income Tracking**\n  - Categorized income transactions\n  - Donation tracking with donator management\n  - Multi-currency support\n  - Account-based income recording\n- **Expense Management**\n  - Categorized expense transactions\n  - Receipt image upload support\n  - Multi-currency expense tracking\n  - Drawer/withdrawer management\n- **Account Management**\n  - Multiple financial accounts\n  - Real-time balance tracking\n  - Currency-specific accounts\n  - Account history and reporting\n\n### 🏛️ Administrative Features\n\n- **User Administration**\n  - User creation and management\n  - Role assignment and permissions\n  - User activity tracking\n- **Category Management**\n  - Income category management\n  - Expense category management\n  - Custom category creation\n- **Currency Management**\n  - Multi-currency support\n  - Currency conversion tracking\n  - Custom currency symbols\n\n### 📊 Approval Workflow\n\n- **Transaction Approval System**\n  - Pending transaction queue\n  - Approval/rejection workflow\n  - Role-based approval permissions\n  - Transaction status tracking\n- **Status Management**\n  - Three-state workflow (Pending, Approved, Rejected)\n  - Timestamp tracking for status changes\n  - Audit trail for all transactions\n\n### 📈 Reporting \u0026 Analytics\n\n- **Dashboard Overview**\n  - Real-time financial metrics\n  - Income vs expense visualization\n  - Account balance summaries\n  - Transaction trend analysis\n- **Advanced Reports**\n  - Account-specific reports\n  - Donator contribution reports\n  - Income/expense comparative reports\n  - Date range filtering\n- **Data Visualization**\n  - Interactive charts and graphs\n  - Pie charts for category breakdown\n  - Trend analysis with line charts\n  - Financial performance metrics\n\n### 🎨 User Experience\n\n- **Modern UI/UX**\n  - Responsive design for all devices\n  - Dark/light theme support\n  - Intuitive navigation\n  - Loading states and animations\n- **Internationalization**\n  - Lao language support\n  - Localized number formatting\n  - Cultural-appropriate date formats\n- **Data Tables**\n  - Sortable and filterable tables\n  - Pagination support\n  - Bulk operations\n  - Export functionality\n\n## Tech Stack\n\n### Frontend\n\n- **Framework**: Next.js 14 with App Router\n- **Language**: TypeScript\n- **Styling**: Tailwind CSS with custom components\n- **UI Components**: Radix UI primitives\n- **State Management**: Zustand\n- **Charts**: Tremor React, React Feather\n- **Icons**: Lucide React, FontAwesome\n- **Forms**: React Hook Form with Zod validation\n\n### Backend \u0026 Database\n\n- **Backend**: Supabase (PostgreSQL database)\n- **Authentication**: Supabase Auth\n- **Storage**: Supabase Storage for images\n- **Real-time**: Supabase Realtime subscriptions\n- **API**: Next.js API routes\n\n### Development Tools\n\n- **Code Quality**: ESLint, Prettier\n- **Type Safety**: TypeScript with strict mode\n- **Build Tool**: Next.js built-in bundler\n- **Package Manager**: Yarn\n- **Version Control**: Git\n\n### Deployment \u0026 Infrastructure\n\n- **Hosting**: Vercel-ready configuration\n- **Database**: PostgreSQL via Supabase\n- **CDN**: Next.js Image Optimization\n- **Environment**: Production-ready configuration\n\n## Demo\n\nYou can view a fully working demo at [Nonsavang Temple](https://nonsavang-temple.tyecode.space/).\n\n## Clone and run locally\n\nFollow these steps to set up the project locally on your machine.\n\n#### 1. Prerequisites\n\nBefore you begin, ensure you have the following installed:\n\n- \u003cb\u003eNode.js\u003c/b\u003e (version 20.10.x or later)\n- \u003cb\u003enpm\u003c/b\u003e or \u003cb\u003eYarn\u003c/b\u003e (depending on your package manager preference)\n- \u003cb\u003eGit\u003c/b\u003e\n- \u003cb\u003eSupabase account:\u003c/b\u003e You’ll need a Supabase project set up.\n\n#### 2. Set Up Supabase\n\n- Create a Supabase Project:\n  - Log in to [Supabase](https://supabase.com/) and create a new project.\n  - Once the project is created, navigate to the API section under Project Settings to find your SUPABASE_URL and SUPABASE_ANON_KEY.\n- Configure Database:\n  - Go to the Database section and set up your tables and schemas as required by the project. If you have SQL scripts for initial setup, you can run them here.\n\n#### 3. Clone the Repository\n\nClone the repository to your local machine using Git:\n\n```bash\ngit clone https://github.com/tyecode/nonsavang-temple--web-client.git\n```\n\nNavigate into the project directory:\n\n```bash\ncd nonsavang-temple--web-client\n```\n\n#### 4. Configure Environment Variables\n\nCreate a `.env.local` file in the root directory and add your environment variables:\n\n```bash\ntouch .env.local\n```\n\nAdd the following environment variables to your `.env.local` file:\n\n```env\n# Database\nDATABASE_URL=your_database_connection_string\n\n# Supabase Configuration\nNEXT_PUBLIC_SUPABASE_URL=your_supabase_project_url\nNEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key\nNEXT_PUBLIC_SUPABASE_SERVICE_ROLE=your_supabase_service_role_key\n\n# Storage Configuration\nNEXT_PUBLIC_SUPABASE_BUCKET_PATH=your_storage_bucket_path\n\n# Authentication\nNEXT_PUBLIC_SUPABASE_AUTH_COOKIE_NAME=nonsavang-auth-token\n\n# Application Configuration\nNEXT_PUBLIC_SITE_URL=http://localhost:3000\n```\n\n**Note**: Replace all placeholder values with your actual Supabase project credentials.\n\n#### 5. Install Dependencies\n\nDepending on your package manager, run one of the following commands to install the necessary dependencies:\n\nFor npm:\n\n```bash\nnpm install\n```\n\nFor Yarn:\n\n```bash\nyarn\n```\n\n#### 6. Database Setup\n\nApply the database migrations using Supabase CLI:\n\n```bash\n# Install Supabase CLI if you haven't already\nnpm install -g supabase\n\n# Link your project\nsupabase link --project-ref your_project_reference\n\n# Apply migrations\nsupabase db push\n```\n\nAlternatively, you can manually run the SQL migrations found in `supabase/migrations/` through your Supabase dashboard.\n\n#### 7. Seed the Database (Optional)\n\nIf you want to populate the database with sample data:\n\n```bash\n# Run the seed script through Supabase dashboard SQL editor\n# Copy and paste the contents of supabase/seed.sql\n```\n\n#### 8. Start the Development Server\n\nStart the local development server:\n\nFor npm:\n\n```bash\nnpm run dev\n```\n\nFor Yarn:\n\n```bash\nyarn dev\n```\n\nThe application will be available at [http://localhost:3000](http://localhost:3000/)\n\n#### 9. Additional Scripts\n\nThe project includes several useful scripts:\n\n```bash\n# Development\nyarn dev          # Start development server\nyarn build        # Build for production\nyarn start        # Start production server\n\n# Code Quality\nyarn lint         # Run ESLint and Prettier checks\nyarn fix          # Auto-fix ESLint and Prettier issues\n```\n\n## Project Structure\n\n```\nnonsavang-temple--web-client/\n├── actions/                    # Server actions for data operations\n│   ├── auth-actions.tsx       # Authentication operations\n│   ├── expense-actions.tsx    # Expense CRUD operations\n│   ├── income-actions.tsx     # Income CRUD operations\n│   └── ...                    # Other entity actions\n├── app/                       # Next.js App Router structure\n│   ├── (admin)/              # Admin-only pages (role-protected)\n│   │   ├── accounts/         # Account management\n│   │   ├── currencies/       # Currency management\n│   │   ├── donators/         # Donator management\n│   │   ├── expenses/         # Expense management\n│   │   ├── incomes/          # Income management\n│   │   └── users/            # User management\n│   ├── (holder)/             # Holder role pages\n│   │   ├── approved/         # Approved transactions\n│   │   ├── pending/          # Pending transactions\n│   │   └── rejected/         # Rejected transactions\n│   ├── (root)/               # Public/authenticated pages\n│   │   ├── report-*/         # Financial reports\n│   │   └── api/              # API routes\n│   ├── login/                # Authentication page\n│   ├── layout.tsx            # Root layout\n│   └── globals.css           # Global styles\n├── components/               # Reusable UI components\n│   ├── ui/                   # Base UI components (shadcn/ui)\n│   ├── pages/                # Page-specific components\n│   ├── badges/               # Status and type badges\n│   ├── buttons/              # Custom button components\n│   ├── cards/                # Card components\n│   └── providers/            # Context providers\n├── constants/                # Application constants\n│   ├── nav-link.ts           # Navigation configuration\n│   ├── user-role.ts          # User role definitions\n│   └── ...                   # Other constants\n├── layouts/                  # Layout components\n│   ├── left-bar.tsx          # Sidebar navigation\n│   └── top-bar.tsx           # Top navigation bar\n├── lib/                      # Utility libraries\n│   ├── utils.ts              # General utilities\n│   ├── date-format.ts        # Date formatting utilities\n│   └── ...                   # Other utilities\n├── stores/                   # Zustand state stores\n│   ├── useAuthStore.ts       # Authentication state\n│   ├── useTransactionStore.ts # Transaction state\n│   └── ...                   # Other stores\n├── types/                    # TypeScript type definitions\n│   ├── user.ts               # User-related types\n│   ├── transaction.ts        # Transaction types\n│   ├── income.ts             # Income types\n│   ├── expense.ts            # Expense types\n│   └── ...                   # Other type definitions\n├── utils/                    # Utility functions\n│   ├── supabase/             # Supabase client configuration\n│   └── middlewares/          # Custom middleware functions\n├── supabase/                 # Supabase configuration\n│   ├── migrations/           # Database migrations\n│   ├── config.toml           # Supabase configuration\n│   └── seed.sql              # Database seed data\n├── public/                   # Static assets\n├── middleware.ts             # Next.js middleware\n├── package.json              # Dependencies and scripts\n├── tailwind.config.ts        # Tailwind CSS configuration\n├── tsconfig.json             # TypeScript configuration\n└── next.config.js            # Next.js configuration\n```\n\n### Key Directories Explained\n\n- **`actions/`**: Contains server-side functions for database operations using Supabase\n- **`app/`**: Next.js 14 App Router structure with route groups for role-based access\n- **`components/`**: Reusable React components built with Radix UI and Tailwind CSS\n- **`stores/`**: Zustand stores for client-side state management\n- **`types/`**: Comprehensive TypeScript type definitions for type safety\n- **`supabase/`**: Database schema, migrations, and Supabase configuration\n\n## License\n\nLicensed under the [MIT License](https://github.com/tyecode/nonsavang-temple--web-client/blob/main/LICENSE). Please read the terms of this license before making modifications to this project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftyecode%2Fnonsavang-temple--web-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftyecode%2Fnonsavang-temple--web-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftyecode%2Fnonsavang-temple--web-client/lists"}