Skip to content

Latest commit

 

History

History
42 lines (32 loc) · 1.1 KB

readme.md

File metadata and controls

42 lines (32 loc) · 1.1 KB

localguessr

A game about guessing your location based on Google Street View API.

  • Client-only: runs purely inside a browser, doesn't require a stateful server other than for serving static pages.
  • Doesn't have ads.
  • Doesn't need account registration.
  • Doesn't have a paywall.

Run

We use Vite for building. (Even though we use vanilla HTML, CSS and JavaScript, this is necessary to optimize OpenLayers library which is not supposed to be used with cdns). So you will need npm or whatever.

Install JS dependencies:

npm install

Start development server:

npm run dev

or

vite

If you want to host localguessr, you need to get the Google API key and put it in <script> tag that loads Google APIs. But to start development server, you don't need an API key.

Build for production:

npm run build

or

vite build

This will create the dist/ directory.

Acknowledgements