This is the Electron frontend for the Photosphere application. Built on React and bundled with Webpack.
You need Node.js installed to run this code.
First, follow the instructions in the Electron readme.
Then open a terminal and change directory to the electron/frontend project:
cd electron/frontend
To enable the frontend you must first run the backend.
Run the dev server like this:
pnpm start
Then click the link or point your browser at the default location for Webpack: http://localhost:8080.
Set the BASE_URL environment variable to point the frontend to the backend:
export BASE_URL=http://localhost:3000
Or on Windows:
set BASE_URL=http://localhost:3000
Build the project to a static web page like this:
pnpm run build
The static web page is output to the dist
subdirectory.
After building the static web page, you can test it locally using live-server
.
First install live-server globally:
pnpm install -g live-server
Now change into the directory where the static web page is generated:
cd dist
From here, start live-server:
live-server
The web page should automatically be displayed in your browser.
pnpm test
BASE_URL
- Sets the URL for the connection to the backend.GOOGLE_API_KEY
- Sets to a valid Google API key to enable reverse geocoding of photo location in the browser.
AUTH0_DOMAIN
AUTH0_CLIENT_ID
AUTH0_AUDIDENCE
AUTH0_ORIGIN