get home safe is a web app exploring the TomTom Maps SDK for JavaScript by building a safety-focused routing application. Features planned include route planning, location tracking, and real-time sharing capabilities.
- Node.js (
brew install nodeif you are on Mac, otherwise you gotta figure it out) - A TomTom API key (you can get one at TomTom Developer Portal)
-
Install dependencies:
npm install
-
Set up your API key:
- Copy
.env.exampleto.env - Add your TomTom API key to
.env:VITE_API_KEY=your_api_key_here
- Copy
Note: always double check your .env is in the .gitignore!!!
-
Run the development server:
npm run dev
-
Open your browser:
- Navigate to
http://localhost:5173(or the URL shown in your terminal)
- Navigate to
This project uses Vite as a build tool :)
- It handles environment variables securely (the
VITE_prefix) - It enables ES6 modules in the browser
- It provides hot module reloading for faster development
Vite is installed automatically when you run npm install.
