WC-Guide is a directory of public toilets, started and well known in Switzerland. In principle, it is intended for all people, but the project idea was particularly aimed at people who are dependent on public toilets in their everyday lives, e.g. in order to enjoy a carefree excursion. Positive feedback from affected persons confirms the sense and purpose of this project and the reason for its continuation and further development.
The progressive Web App PWA is based on vueJS and uses nodeJS and WebPack for the build process.
To use the source code you need nodeJS (min v. 8.10) and npm (min v. 6.9).
Then you can use npm install to install all dependencies.
It also uses Livereload to sync changes with your browser.
There are several tasks configured:
npm start: starts the development build process and the file watchernpm prod: runs the production buildnpm update: runs .npm/updatePackage.js script. It basicly just updates the package.json version and the version inside the src/version.jsonnpm deploy: it updates the version, runs the production build and uploads everything to the FTP Server (.npm/deploy.js)
This app is served as a PWA. That means its designed to work offline first (using IndexedDB and a ServiceWorker) and generates a manifest.json to make it installable.
The app has several connections to the wc-guide.com Backend and to mapBox. They are all defined inside the settings.js (const api, const mapBoxSettings).
There are no dependencies to other external ressources.