- Get a Google Maps API key from the Google Cloud Console.
- Create a
.env
file in the project root (do NOT commit this file):GOOGLE_MAPS_API_KEY=your_real_key_here
- Start the app as per your framework's instructions.
Security Note:
- Never commit your API key to a public repository.
- Restrict your API key in the Google Cloud Console to only the domains and APIs you need.