================
A geoguessr-like website, but free and without any ads!
-
Explore places using Google Street View
-
Guess the location of a random city
-
View minimap for navigation
-
You have three lives
-
Every time you make a wrong guess, a hint appears at the bottom of the screen!
Add a Google Maps api key to .env:
VITE_GOOGLE_MAPS_API_KEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
To run the application, navigate to the project directory and execute the command:
bun install
bun run devThis will start the development server, and you can access the application at http://localhost:3000.
App: The main application componentPlaceExplorer: The component responsible for rendering the place exploration interfaceAutocomplete: The component for autocomplete suggestionsInput: The component for user input
GET /api/getPlace: Returns a random city as JSONGET /api/startGame: Starts a game and returns a random codeGET /api/getGame/:gameId/:username: Returns a game's information as JSONGET /api/updateGame/:gameId/:username: Changes the random position of a game
app.css: Global styles for the applicationgeoguessr.css: Styles for the place exploration interfaceinput.css: Styles for the input component
Thanks to Simplemaps for their csv dataset.