- using
node.js+inquiererfor running and displaying input/outpu - storing everyting encrypted (
CryptoJS) inMongoDB - you are able to use
Dockerfor running your local instance ofmongoDBwith persistent data
- put a
.env-File in the aplication root with following content:
DB_URL=mongodb://localhost:27017/PwData
CRYPTO_PWD=yourCryptoPW
MASTER_PWD=yourLoginPassword
where
DB_URLpoints to your local or cloud-based mongoDBCRYPTO_PWis used to encrypt DataMASTER_PWist used to login to the app
- with docker installed just run and make use of the
DB_URLabove:
$ docker-compose up- run
node app.jsin the project-root in your favourite Terminal



