On the host system:
-
git clone https://github.com/practisec/express-authz-test.git -
cd express-authz-test -
docker run --rm -it -p 9000:3000 -v ${PWD}:/src node:alpine /bin/sh
In the container:
-
cd /src -
npm install -
npm start
In a browser:
- Visit http://localhost:9000.
email: "abc@gmail.com"
password: "password"
role: "user"
email: "admin@gmail.com"
password: "password"
role: "admin"