Asset management system built with Next.js, Supabase, and Ant Design theming.
- Next.js - React framework
- Supabase - Backend and database
- Ant Design - UI components with theming
Create a .env.local file in the project root:
NEXT_PUBLIC_SUPABASE_URL=your_supabase_url
NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY=your_publishable_key
SUPABASE_SERVICE_ROLE_KEY=your_service_role_key
POSTGRES_HOST=your_postgres_host
POSTGRES_USER=postgres
POSTGRES_DATABASE=postgres
POSTGRES_PASSWORD=your_postgres_password
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_SECURE=false
SMTP_USER=your-email@gmail.com
SMTP_PASSWORD=your-app-password
SMTP_FROM=your-email@gmail.com
NEXT_PUBLIC_APP_URL=http://localhost:3000
WARRANTY_API_KEY=your_warranty_api_keyRun the database setup script to create initial tables:
npm run setup-databaseThis creates all required tables and policies.
To add the profile update request feature, run:
npm run update-databaseThis creates the profile_update_requests table and required policies for the profile update request functionality.
Create an admin user via command line:
npm run create-admin <email> <password>Example:
npm run create-admin admin@example.com StrongPass123Default Admin Credentials:
- Email:
admin@assetmanager.co.zw - Password:
admin.123
npm run devVisit http://localhost:3000