Skip to content

Log-Devs/mainfrontend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

MainFrontend - Logistics App (Users/Admins)

React Vite License

Primary Web Application for [Startup Name]'s Ghana ↔ US logistics operations
MVP Target: 5-10 pilot shipments by June 9, 2025

Teal (#008080) and Red (#FF0000) UI Preview

📖 Table of Contents

🌟 Project Overview

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)

✨ Features

Authentication

  • 🔒 JWT-secured signup/login
  • Professional form with company verification
  • Role-based access control

Package Management

  • 📦 Cargo type dropdown (Electronics, Textiles, etc.)
  • Weight/destination inputs
  • Automated pickup scheduling

Tracking Dashboard

  • 🗺️ Static Mapbox route visualization
  • Real-time status updates
  • Unauthenticated view: "Package exists" (red alert)

Admin Panel

  • 👮 Full shipment oversight
  • User management interface
  • Red action buttons for critical operations

🛠 Tech Stack

Frontend

Framework: React + Vite
Styling: styled-components (teal #008080 / red #FF0000)
Routing: React Router DOM
Maps: Mapbox GL
State Management: Firebase Realtime Database

🔗 Backend Integration

API: Axios
Endpoints: 
  - /signup
  - /track/:id 
  - /submit-package
Authentication: JWT

🚀 DevOps

Deployment: Vercel (Free Tier)
Testing: 
  - Jest 
  - ESLint
CI/CD: GitHub Actions

⚙️ Setup

Prerequisites
  - Node.js ≥16.x
  - npm ≥8.x
  - Git
CI/CD: GitHub Actions

Clone repository

git clone git@github.com:Log-Devs/mainfrontend.git cd mainfrontend

Install dependencies

npm install

Configure environment

cp .env.example .env

Add your credentials

VITE_API_URL=your_backend_url VITE_MAPBOX_TOKEN=your_mapbox_key

Start development server

npm run dev

👥 Team Structure

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

🤝 Contributing

  1. Create feature branches:

    git checkout -b feature/your-feature
  2. 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"

PR Approvals (Require 2)

  • Frontend Developer
  • Full-Stack Engineer
  • Backend Developer (Optional for API-related PRs)

🚨 Troubleshooting

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>

📬 Contact

Technical Lead: IsaacAbakah
Project Manager: AustinBediako
Backend Support: Romay

Figma Designs

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published