Primary Web Application for [Startup Name]'s Ghana ↔ US logistics operations
MVP Target: 5-10 pilot shipments by June 9, 2025
- Project Overview
- Features
- Tech Stack
- Setup
- Development Timeline
- Team Structure
- Contributing
- Troubleshooting
- Contact
Core Components:
- User/Admin portals for shipment management
- Real-time tracking with Mapbox integration
- Bold visual design using teal (#008080) and red (#FF0000)
- JWT-secured authentication system
- Integrated with Warehouses App (MVP partner system)
- 🔒 JWT-secured signup/login
- Professional form with company verification
- Role-based access control
- 📦 Cargo type dropdown (Electronics, Textiles, etc.)
- Weight/destination inputs
- Automated pickup scheduling
- 🗺️ Static Mapbox route visualization
- Real-time status updates
- Unauthenticated view: "Package exists" (red alert)
- 👮 Full shipment oversight
- User management interface
- Red action buttons for critical operations
Frontend
Framework: React + Vite
Styling: styled-components (teal #008080 / red #FF0000)
Routing: React Router DOM
Maps: Mapbox GL
State Management: Firebase Realtime DatabaseAPI: Axios
Endpoints:
- /signup
- /track/:id
- /submit-package
Authentication: JWTDeployment: Vercel (Free Tier)
Testing:
- Jest
- ESLint
CI/CD: GitHub ActionsPrerequisites
- Node.js ≥16.x
- npm ≥8.x
- Git
CI/CD: GitHub Actionsgit clone git@github.com:Log-Devs/mainfrontend.git cd mainfrontend
npm install
cp .env.example .env
VITE_API_URL=your_backend_url VITE_MAPBOX_TOKEN=your_mapbox_key
npm run dev
| Role | Responsibilities |
|---|---|
| Project Manager | Contract drafting, daily standups |
| Full-Stack Engineer | API integration, deployment |
| Frontend Developer | UI implementation |
| Backend Developer | API support |
| QA/Design Developer | Testing & design validation |
-
Create feature branches:
git checkout -b feature/your-feature
-
Commit Message Conventions;
# Format: type(scope?): subject
git commit -m "feat(tracking): Add shipment status component"
git commit -m "fix(auth): Resolve JWT expiration issue"- Frontend Developer
- Full-Stack Engineer
- Backend Developer (Optional for API-related PRs)
| Issue | Solution |
|---|---|
| API Connection Failed | Verify VITE_API_URL in .env file |
| Map Not Rendering | Ensure valid Mapbox token in VITE_MAPBOX_TOKEN |
| Style Inconsistencies | Confirm CSS variables are properly defined:css<br>/* colors.css */<br>:root {<br> --primary-teal: #008080;<br> --secondary-red: #FF0000;<br>}<br> |
Technical Lead: IsaacAbakah
Project Manager: AustinBediako
Backend Support: Romay