Smart Procure is an intelligent, web-based platform designed to optimize inventory management and streamline procurement processes for electronic components. It enables organizations to efficiently manage stock levels, track suppliers, automate procurement alerts, and send real-time email notifications using Supabase Edge Functions.
- Manage electronic components with real-time stock levels
- Configure and track reorder thresholds
- Monitor component usage history
- Add, edit, and delete supplier records
- Maintain supplier contact details
- Associate suppliers with specific components
- Automated low-stock alerts
- Supplier-wise component mapping
- Historical price tracking for components
Automated Email Alerts
- Low-stock procurement notifications
- Supplier communication emails
Email Delivery
- Supabase Edge Functions
- Resend SMTP integration
Custom Email Triggers
- Send emails directly to supplier email IDs
- Test email functionality using personal email addresses
- Modern, responsive dashboard
- Card-based supplier views
- Search and filter functionality
- Expandable supplier details
- Component lists per supplier
- Toast notifications for success and error feedback
- React (Vite + TypeScript)
- Tailwind CSS
- ShadCN UI
- Lucide Icons
- Supabase
- PostgreSQL
- Row Level Security (RLS)
- Supabase Authentication
- Supabase Edge Functions
- Resend (SMTP-based email delivery)
Smart-Procure/
│
├── src/
│ ├── components/
│ ├── pages/
│ ├── integrations/
│ │ └── supabase/
│ └── hooks/
│
├── supabase/
│ ├── migrations/
│ ├── functions/
│ │ ├── send-supplier-alert/
│ │ └── send-supplier-message/
│ └── config.toml
│
├── .env
├── package.json
└── README.md- Node.js 18+
- Supabase account
- Resend account
- Git & GitHub
git clone https://github.com/yourusername/smart-procure.git
cd smart-procurenpm installCreate a .env file in the root directory:
VITE_SUPABASE_URL=https://your-project-id.supabase.co
VITE_SUPABASE_ANON_KEY=your_publishable_keyLogin and link your project:
npx supabase login
npx supabase linkPush the database schema:
npx supabase db push-
Enable Custom SMTP in Supabase:
- Supabase Dashboard → Authentication → Email
-
SMTP Configuration:
- Host: smtp.resend.com
- Port: 587
- Username: resend
- Password:
re_your_resend_api_key - Sender Email: onboarding@resend.dev
-
Set Edge Function secret:
npx supabase secrets set RESEND_API_KEY=re_your_resend_api_key- Deploy Edge Functions:
npx supabase functions deploynpm run devOpen your browser and navigate to:
http://localhost:5173
-
Supplier email addresses are fetched from the
supplierstable -
To test email delivery:
- Replace a supplier’s email with your personal email (e.g., Gmail)
- Click Send Email
- Verify email delivery in your inbox
- Inventory Monitoring – Tracks component quantities and detects low-stock conditions
- Supplier Mapping – Links components with registered suppliers
- Edge Functions – Executes server-side email logic
- Email Delivery – Supabase → Resend → Supplier inbox
- Analytics dashboard for inventory trends
- Supplier performance scoring
- Role-based access control (RBAC)
- PDF export for procurement reports
- AI-based demand forecasting
Pooja S Email: poojashree2266@gmail.com
GitHub: Pooja0629
This project is licensed under the MIT License - see the LICENSE file for details.
- Supabase for backend services and Edge Functions
- Resend for reliable email delivery
- Open-source community for UI libraries and tooling
- Repository: https://github.com/Pooja0629/Smart-Procure
- Issues: https://github.com/Pooja0629/Smart-Procure/issues
“Optimizing inventory decisions through automation, real-time alerts, and scalable cloud infrastructure.”