Skip to content

kudah99/asset-manager

Repository files navigation

Asset Manager

Asset management system built with Next.js, Supabase, and Ant Design theming.

Tech Stack

  • Next.js - React framework
  • Supabase - Backend and database
  • Ant Design - UI components with theming

Setup

1. Environment Variables

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_key

2. Database Setup

Run the database setup script to create initial tables:

npm run setup-database

This creates all required tables and policies.

Update Database for Profile Update Requests

To add the profile update request feature, run:

npm run update-database

This creates the profile_update_requests table and required policies for the profile update request functionality.

3. Create Admin Account

Create an admin user via command line:

npm run create-admin <email> <password>

Example:

npm run create-admin admin@example.com StrongPass123

Default Admin Credentials:

  • Email: admin@assetmanager.co.zw
  • Password: admin.123

4. Run Development Server

npm run dev

Visit http://localhost:3000

About

Next Js , Postgres/Superbase and Anti Design UI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages