Stop place register frontend. Uses stop place register backend tiamat's graphQL API
In order to build the webpack bundle and run the application, use
npm run build && npm run prod
We use node-convict for config:
TIAMAT_BASE_URL: Where to find tiamat
ENDPOINTBASE: Where th application resides, in development defaulting to
/but in the test environment
You can serve a config file and provide a
CONFIG_URL env to let node-convict do this for you.
To run Abzu for development, simply do:
npm install npm run dev
Note: This will launch the application with hot reload enabled.
Default port is 8988. This can be overrided by setting the environment
port (notice lower case).
To override timatBaseURL (GraphQL endpoint), set
TIAMAT_BASE_URL as environment variables, e.g.
TIAMAT_BASE_URL=https://api-test.entur.org/stop_places/1.0/graphql port=9000 NODE_ENV=development node server.js
Uses Jest to test unit and reducer testing
Uses Keycloak to authenticate user and read JWT, set
AUTH_SERVER_URL=https://www-test.entur.org/auth port=9000 NODE_ENV=development node server.js
Default theme is found in
Add custom theme
- Create new directory:
index.jswith custom fyles (cf.
This is WIP.
webpack.dev.config.js for development and
webpack.prod.config.js for production code. Correct config is chosen based on NODE_ENV.
public/bundle which is the entire application rendered by the server. In development this file is emitted from webpack through webpack-dev-middleware over a connect server. No file is written to disk. These facilities hot-reload.
Issues with pngquant on linux
error while loading shared libraries: libpng12.so.0
Ubuntu has, at the time of writing, libpng 16, not libpng 12.
wget -q -O /tmp/libpng12.deb http://mirrors.kernel.org/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1_amd64.deb \ && sudo dpkg -i /tmp/libpng12.deb \ && rm /tmp/libpng12.deb