Frontend of the Lerkies-only part of the Lerkeveld website. For a live demo, see https://lerkies.simonbos.me/underground/.
Installation requirements:
- npm
Installation instructions:
git clone 'https://github.com/lerkeveld/lerkeveld-underground' .
cd lerkeveld-underground
npm install
touch .env.localAdd following development configuration options to .env.local:
REACT_APP_API_URL="http://localhost:8888/api"
REACT_APP_CREDENTIALS="include"Some optional configuration changes:
- Change
REACT_APP_API_URLto your private IP address to allow devices on your LAN using the development version of the Lerkeveld Underground to connect to the backend.
Run the development server with npm start and be sure to run the backend (see https://github.com/lerkeveld/lerkeveld-backend).
Use the development installation instructions to create the JavaScript bundle, but change the environment variables:
- API and frontend on the same origin: change
REACT_APP_API_URLandREACT_APP_CREDENTIALSto respectively"/api"and"same-origin" - API and frontend on the an other origin: change
REACT_APP_API_URLandREACT_APP_CREDENTIALSto respectively the API url and"include"
Place the JavaScript bundle at /underground of the webroot.
(Note: it is not necessary to create the JavaScript bundle on the remote machine on which the bundle is deployed.)