The open-source codebase for the Data explorer of the City of Amsterdam; the central hub for objective, reliable and actual data, and information about Amsterdam. This explorer contains interactive data visualizations in an interactive map and tables.
Install all dependencies:
npm install
Start the application:
npm start
Then, open the application in your browser at localhost:3000.
In case you want to override the environment variables while developing, you can copy and rename the .env.example
to .env
and change the variables to your needs.
The docker-compose.yml
file contains environment variable declarations that are required for the application to run in production mode. The production environment can be set up locally by running
make start
The Makefile
consists of other useful commands to stop, restart and rebuild the application. To see all commands, run
make help
npm run test
In order to E2E test the application make sure you have a development server running locally:
npm run start
After doing this open up a new terminal and run the following commands:
npm run test:e2e
This will start the E2E test, if you want to watch for changes you can also run npm run test:e2e:watch
instead.
npm run analyze
npm run lint
There are three demo servers that can be deployed to, to deploy to one of these servers run the following command on your branch.
npm run deploy:demo