This is a project for simulation of realtime bus movement on Google Maps map.
You may visit the deployed version here transporter
For reviewer's convenience, I have deployed this project as a Demo
. Feel free to visit it on the above url
- Clone the repostory
transporter
- Run
npm install
oryarn
depending on your preferred package manager - Add
.env.local
file, where you will add yourGoogle Maps API Key
andfirebase configuration
variables - Run
yarn dev
to initialize the localhost - To experience realtime, you will need to act as a
driver
(driver page is found athttp://localhost:3000/
) anduser
at (http://localhost:3000/user
). Put them side by side and animate the bus from the admin page and enjoy how realtime it is across all users. Note:
I have includedexample env
file that contains every environment variable you will need to use
- NextJs and Typescript on the front-end
- Firebase Firestore for
storage
andstreams
for realtime updates. In real project I recommendsocket.io
for bidirectional communications between client and server (realtime) - Google Maps API
- Chadcn component library
- Tailwind css