This is the web frontend for the Photosphere application. Built on React and bundled with Webpack.
First, follow the instructions in the main readme.
Then open a terminal and change directory to the frontend project:
cd 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
pnpm run test-e2e
Enable this to debug with Playwright:
export PWDEBUG=1
Or on Windows:
set PWDEBUG=1
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