Home / Companies / Strapi / Blog / Post Details
Content Deep Dive

How To Build A Truck Tracker Custom Field and Map Widget for Strapi Admin

Blog post from Strapi

Post Details
Company
Date Published
Author
Ben Irvin
Word Count
6,277
Language
English
Hacker News Points
-
Summary

In this comprehensive blog tutorial, readers are guided through the process of customizing the Strapi Admin panel by developing a custom Truck Tracker plugin for Strapi version 5. This plugin enables users to manage delivery trucks, update their real-time locations using a map, and display all trucks on a live dashboard widget. The tutorial covers creating a content type for storing truck details and GPS coordinates, building a custom map input field (GeoPicker) for visually selecting truck locations, and creating a dashboard widget using React Leaflet to show all trucks on a map. Additionally, it includes setting up an API endpoint for GPS device updates, implementing logic to track when each truck's location was last updated, and adding secure backend routes with custom middleware. The guide is particularly useful for those interested in learning more about Strapi's inner workings and building practical applications with it, and it offers a video tutorial on YouTube for visual learners.