express-mustache-jwt-signin-example
v0.5.7
Published
A set of mustache templates to be used with express-mustache-overlays that provides a Bootstrap and Flexbox theme.
Readme
Express Mustache JWT Signin Example
You can test the example as simply as:
cd ../
npm install
cd example
npm install
SECRET='reallysecret' COOKIE_SECURE='false' PORT=8000 npm startIf you get a warning about not being able to install a package, remove your package-lock.json file and try again.
For production use you'll want to change SECRET and make COOKIE_SECURE 'true'.
To see all the debug output you should run:
SECRET='reallysecret' COOKIE_SECURE='false' DEBUG="*" PORT=8000 npm startYou can choose just a few selected loggers by comma-separating their names like this:
SECRET='reallysecret' COOKIE_SECURE='false' DEBUG="express-mustache-jwt-signin,express-mustache-jwt-signin:server" PORT=8000 npm startDocker
Docker can't copy files from a parent directory so the docker:build command puts the current dev version of express-mustache-jwt-signin in this directory and created a modified package.json.docker:
npm run docker:build && npm run docker:runDev
npm run fixTest
Login:
# Success
curl -X POST -v --data "username=hello&password=world" http://localhost:8000/signin