This is an improved version of the e-bike-rental PWA found at https://velocity-aachen.de/menu.
It was rewritten from the ground up in modern React for improved performance and a better user experience. Originally written to be a 1:1 clone of the existing PWA it now has diverged from the official web app to integrate some improvements in regards to the bike booking & rental process and an improved overview over the map.
The PWA contains a service worker (that is currently disabled on iOS) and can be installed as a Chrome PWA.
This project uses Create-React-App as its build process & yarn for package management. Compiling is straightforward:
yarn build
You will find the minified & bundled sources in the build
folder. They can be served from any static web server. Due to CORS restrictions, the PWA also requires an API proxy to Velocity's backend. It already contains the necessary configuration for a Netlify deployment.
Running the webpack dev server with hot reloading is straightforward:
yarn start
The web app will by default be served on localhost:3000
.
A development proxy is in the proxy
folder, it can be started by running docker-compose up
in the repo's root directory.