This is an small example of doing passwordless login with mojo.js.
You need a postgresql database and email server to run the example. See below for how to easily get those running with docker.
docker run --rm --name pg-docker -e POSTGRES_PASSWORD=postgres -d -p 5432:5432 -v $HOME/docker/volumes/postgres:/var/lib/postgresql/data postgres
psql -h 'localhost' -c "CREATE DATABASE mojojs_passwordless_example_dev" "user=postgres dbname=postgres password=postgres"
2. Start maildev email server
You will be able to check emails at http://localhost:1080.
docker run -d -p 1080:1080 -p 1025:1025 maildev/maildev
npm install
npm run build
node lib/index.js migrate
5. Start minion.js background worker for handling signup & login email jobs
node lib/index.js minion-worker --jobs 12
Leave the background worker running in a separate terminal window.
npm run dev