A web app to manage freight agents and send bulk email campaigns.
- Agent Management: Add, edit, delete, and bulk import agents.
- Agent Selection: Search and select agents for campaigns.
- Bulk Email Campaigns: Send personalized emails to selected agents.
- Status Tracking: See real-time email delivery and response status.
- Bulk Upload: Import agents from Excel/CSV files.
-
Clone the repository
git clone <your-repo-url> cd freight
-
Install dependencies
npm install
-
Set up environment variables
Create a
.envfile:DATABASE_URL=mysql://user:password@host:port/database SMTP_HOST=smtp.example.com SMTP_PORT=587 SMTP_USER=your@email.com SMTP_PASS=yourpassword -
Run database migrations
npx prisma migrate deploy npx prisma generate
-
Build and start the app
npm run build npm start
For development:
npm run dev
- Manage Agents: Add/edit/delete or bulk import agents.
- Select Agents: Search and select agents for your campaign.
- Send Emails: Customize and send emails, then track their status.
npm run dev– Start development servernpm run build– Build for productionnpm start– Start production servernpm run lint– Run linter
- Frontend: Next.js, React, Tailwind CSS, Radix UI
- Backend: Next.js API routes, Prisma, MySQL, Nodemailer
- Other: XLSX (Excel), Lucide React (icons)
- Production build required:
Runnpm run buildlocally and upload the.nextfolder, or build on the server before starting. - Start with:
npm start(usesserver.jsfor custom server)
This project is licensed under the MIT License.