interactive train ride, live at sepweb.dev/showmetheworld
Currently tested and working on Windows 11 in Edge and Chrome.
Does not work in Firefox due to WebSpeechAPI being disabled.
Android and Apple devices have some graphical bugs.
Currently set to use the Bing Search API for getting images. Could be changed to something else...
-npm
-three.js (via npm)
-a bing search api key from portal.azure.com
- set up a local server using something like Xampp
- start the local server. In Xampp, this is done by pressing the start buttons for Apache. (this and the previous step can be skipped if only running in dev mode)
- clone the repository to a folder within your localhost directory. (In the case of Xampp, probably c:/xampp/htdocs)
- in main.js, set searchApiKey (l.88) to your Bing API key.
- Go to the new directory in your terminal:
cd faces
. - Initiate npm and install the three.js package:
npm i three
- for development, run:
npm run dev
and open the link shown in the terminal output - for production, run
npm run build
and openlocalhost/showmetheworld/dist