-
Using Node.js & docker
-
Idea was described on shahednasser´s blog, in the post How to Add Authentication with Google Authenticator in Node.js tutorial
*So why this?
I wanted to extend the tutorial with docker
After cloning this repository, install the dependencies:
npm i
Run the 'APP' with the following command:
npm start
The 'APP' will run at port 3000 if you do not change the config/default.json
Open your browser http://localhost:3000
docker build . -t mfa
docker run -p 3000:3000 -d mfa
The server will run at port 3000 if you do not change
- config/default.json
- Dockerfile (expose port)
Open your browser http://localhost:3000