Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🚚 Driver Dashboard

A modern, full-stack web application for driver registration and dashboard management.
Easily upload profile pictures and truck documents, view driver details, and manage your fleet with a clean, responsive interface.


✨ Features

  • Driver Registration:
    Register new drivers with essential details and upload profile pictures and truck documents.

  • Dynamic Dashboard:
    Instantly view registered driver information and uploaded files.

  • File Uploads:
    Securely store profile images and documents using Multer and MongoDB.

  • Responsive Design:
    Optimized for desktop and mobile devices.

  • RESTful API:
    Built with Node.js, Express, and MongoDB (Atlas).


🛠️ Tech Stack

  • Frontend: React, Vite, Axios, CSS
  • Backend: Node.js, Express, Multer, Mongoose
  • Database: MongoDB Atlas
  • Deployment: Vercel (frontend), Heroku/Render (backend)

🚀 Getting Started

1. Clone the repository

git clone https://github.com/Coldsummers/driver-dashboard.git
cd driver-dashboard

2. Install dependencies

Frontend:

cd frontend
npm install

Backend:

cd ../backend
npm install

3. Configure environment variables

  • Frontend:
    Create a .env file in /frontend and set your backend API URL:
    VITE_API_URL=http://localhost:5000
    
  • Backend:
    Create a .env file in /backend and add your MongoDB Atlas URI:
    MONGODB_URI=your_mongodb_atlas_connection_string
    

4. Run the app locally

Backend:

node app.js

or

npx nodemon app.js

Frontend:

npm run dev

🌐 Live Demo

Note: These demo links use free hosting. If the backend appears offline, please wait a few seconds and refresh. The service may be waking up!


📁 Project Structure

driver-dashboard/
│
├── backend/
│   ├── controllers/
│   ├── models/
│   ├── routes/
│   ├── uploads/
│   └── app.js
│
├── frontend/
│   ├── public/
│   ├── src/
│   ├── index.html
│   └── ...
│
└── README.md

💡 Contributing

Pull requests are welcome!
Feel free to open issues for suggestions or bug reports.


📄 License

This project is licensed under the MIT License.


👤 Author

Samuel Kodi
GitHub Profile


“Drive innovation. Manage with style.”

Releases

Packages

Contributors

Languages