A minimal starting point for interactive applications that we build at webkid. The boilerplate already includes some basic components as well as hooks and utils that we are often using in our projects.
The starterkit is based on these libraries:
<script defer="defer" src="https://cdn.correctiv.org/apps/grundwasser-atlas/js/{hash_id}.js"></script><script defer="defer" src="https://cdn.correctiv.org/apps/grundwasser-atlas/js/app.{hash_id}.js"></script><link href="https://cdn.correctiv.org/apps/grundwasser-atlas/bundle.css" rel="stylesheet" /><div id="gw-explorer-app"></div>
Create a new Github repository with the template or clone the repo:
git clone [email protected]:wbkd/react-starter.git && cd react-starter
then install the dependencies via npm:
npm install
you are now ready to develop your app.
Builds the application and starts a webserver with hot loading. Runs on localhost:8080
npm run start
Builds a minified version of the application in the build folder.
npm run build
Additionally, a zipped version of the bundle is added as build.zip
. We often use this for our clients to upload the application to their own servers.