Logo Lanfrica

mohaaitbensaid-coder/hrfaw

Domain:

socioeconomicdigital infrastructure

Record type:

software
Creator:
moh
Host:
The link between professionals and clients in Morocco # HRFA.MA - Artisan & Customer Platform A modern web platform connecting artisans with customers in Morocco. Built with React, Tailwind CSS, and Supabase. ## Features - **User Authentication**: Sign up as a Customer or Artisan. - **Artisan Listings**: Browse artisans by city and craft. - **Profiles**: Detailed artisan profiles with services and reviews. - **Real-time Chat**: Internal messaging system between customers and artisans. - **Dashboard**: Manage profile (for artisans) and view conversations. ## Tech Stack - **Frontend**: React + Vite - **Styling**: Tailwind CSS + Lucide Icons - **Backend / Auth / DB**: Supabase ## Setup Instructions ### 1. Prerequisites - Node.js installed. - A Supabase account. ### 2. Installation ```bash npm install ``` ### 3. Environment Variables Create a `.env` file in the root directory and add your Supabase credentials: ```env VITE_SUPABASE_URL=your_supabase_project_url VITE_SUPABASE_ANON_KEY=your_supabase_anon_key ``` ### 4. Database Setup 1. Go to your Supabase Project Dashboard. 2. Navigate to the **SQL Editor**. 3. Open `supabase/schema.sql` from this project. 4. Copy the content and run it in the SQL Editor to create tables and security policies. ### 5. Run Locally ```bash npm run dev ``` ## Deployment This project is ready to be deployed on Vercel. 1. Push code to GitHub. 2. Import project in Vercel. 3. Add `VITE_SUPABASE_URL` and `VITE_SUPABASE_ANON_KEY` to Vercel Environment Variables. 4. Deploy!