Skip to content
This repository was archived by the owner on Mar 12, 2026. It is now read-only.

kkamara/nodejs-security-3

Repository files navigation

nodejs-security-3

Hash, Encrypt and Decrypt with the NodeJS Crypto module.

Salt 2
  yarn node src/salt2.js

Installation

  npm install --global yarn
  cp .env.example .env
  yarn install

Usage

  yarn node src/salt2.js
Run database migrations
  yarn node src/index.js
Run start
  yarn start # Runs Start-script `yarn node src/app.js`
  # Serves app to http://localhost:3000/.
  # Serves api to http://localhost:3000/api/v1.
  #   Example api route: http://localhost:3000/api/v1/test.
Reload server on project files change
  yarn dev # Runs Dev-script `nodemon src/app.js`
  # We can also `APP_ENV=development nodemon src/app.js`.

Using docker?

  docker-compose up --build -d

To run api tests

  yarn test

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

BSD

About

Hash, Encrypt and Decrypt with Node.js Crypto module.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors