Team responsible: Engineering Enablement
This project uses Storybook to provide demos and examples of common use-cases of maps for Gemeente Amsterdam. The preferred map library is Leaflet implemented in the frontend library React.
This project is generated from a repository template.
The starter contains the following scripts:
start- starts dev serverbuild- generates the production bundletest- starts vitest and runs all teststest:coverage- starts vitest and run all tests with code coverage reportlint:scripts- lint.ts,.tsxand.jsonfiles with eslintlint:styles- lint.cssand.scssfiles with stylelintformat:scripts- format.ts,.htmland.jsonfiles with prettierformat:styles- format.csand.scssfiles with stylelintformat- format all with prettier and stylelintprepare- script for setting up husky pre-commit hookuninstall-husky- script for removing husky from repository
By default npm run start will fire up a dev server with a random port (often 5173). You can configure a constant port in the vite.config.ts file; there is commented code showing to configure the port. There are many other options available as documented in the vite docs.
Simply create and submit a pull request. You can also contact us via Teams (DV - Enablement) or Slack (#dv-enablement).