|Peter J. Jones 1af1cfd076 Add Docker image config and README info||2 months ago|
|images||2 months ago|
|src||2 months ago|
|www||2 months ago|
|.envrc||2 months ago|
|.gitignore||2 months ago|
|CHANGELOG.md||2 months ago|
|LICENSE||2 months ago|
|README.md||2 months ago|
|Setup.hs||2 months ago|
|default.nix||2 months ago|
|docker.nix||2 months ago|
|shell.nix||2 months ago|
|zxcvbn-ws.cabal||2 months ago|
|zxcvbn-ws.nix||2 months ago|
To play with this demo you need to:
If you have Docker installed, using the Docker image is super simple:
$ docker run -p 127.0.0.1:12345:12345/tcp sthenauth/zxcvbn-ws
That will download the image and start the web server. Now just play with it at http://localhost:12345/.
If you have an existing Haskell toolchain installed then you can use
cabal install. Otherwise keep reading.
Install Nix which is pretty simple and straight forward.
Open a new terminal and run the following command in the directory containing this file:
Wait for everything to build.
Start the web server:
$ zxcvbn_ws_datadir=$(pwd) ./result/bin/zxcvbn-ws
You can change the port that
zxcvbn-ws uses by setting the
ZXCVBN_PORT environment variable.