Where's That Ah? is a game inspired by GeoGuessr that tests and improves your geographical knowledge of places around Singapore. I built this front-end web app as Project 1 for the Rocket Academy Coding Bootcamp.
Try it out here!
- Customise game settings: Choose which type of places and how many places you'd like to guess.
- Start the game: Click on the "Start" button.
- Guess the location: You'll see a place name. Drop a pin on the Singapore map where you think the place is located.
- Submit your guess: Click on the "Guess" button to confirm your pin location.
- See your score: The closer your pin to the actual location, the higher your score. You'll see your total score after 5 rounds.
- HTML, CSS and React with Create React App
- MapLibre GL JS for interactive map
- MapTiler Cloud for map tiles
- Mantine UI for UI components
- Turf for distance calculation
Contains information from Amendment to Master Plan 2019 Rail Station layer accessed on 20 August 2023 from Urban Redevelopment Authority (URA) which is made available under the terms of the Singapore Open Data Licence version 1.0.
To run the app on your local machine:
-
Clone the repo:
git clone https://github.com/chengwaikoo/wheres-that.git
-
Add your API key: To access the MapTiler Cloud API, open
src/components/Map.js
and find this line:style: `https://api.maptiler.com/maps/363b3c4e-0ad0-4a51-b858-c019423b9d2c/style.json?key=${process.env.REACT_APP_MAPTILER_KEY}`,
Replace
${process.env.REACT_APP_MAPTILER_KEY}
with your own API key. Alternatively, create a.env.local
file in the project directory, and defineREACT_APP_MAPTILER_KEY
as an environment variable there. -
Install dependencies: Run
npm install
from the project directory. -
Start the app: Run
npm start
from the project directory. The app opens in your web browser, and is accessible at http://localhost:3000.