An Elm web client to demonstrate use cases of user generated cryptographic tokens.
Live instance: demo.dignity.network
Works best on mobile
- Docker
- Elmlang
- Nodejs
- Webpack
$ export APP_ENV=dev
$ docker build -t elm-web-client --build-arg APP_ENV .
To run application with live reloading and hot module replacement. First build an image with APP_ENV=dev (see above). Run the following command
$ export BACKEND_ADDRESS=http://10.20.30.2:1234
$ docker run -d -p 8888 elm-web-client
Make sure to configure your backend service
version: "3"
services:
backend_service:
....
elm-client:
build:
context: ./path/to/folder
depends_on:
- backend_service
ports:
- "8888:8888"
volumes:
- ./path/to/folder:/app/src
environment:
BACKEND_ADDRESS: "http://backend_service:3000"
APP_ENV: dev
# Build an image for production
$ export BACKEND_ADDRESS=http://10.20.30.2:1234
$ export APP_ENV=production
$ docker build -t elm-web-client --build-arg BACKEND_ADDRESS --build-arg APP_ENV .
# Run a container of that image
$ docker run -d -p 80 elm-web-client
# In the case of docker-compose. Configure APP_ENV as production
$ docker-compose up elm-client
- Khaled Jouda (github @kjda)
- Dirk Helbing (twitter @dirkhelbing)