DevSazal / backend-password-validator

Password Validator API & batch-validation with CLI script (TypeScript, Node.js, Express.js)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Password Validator

Requirements:

🎁 If you are a fan of docker, then pull the docker image by following the commands:

docker pull sazal/typescript-password-validator

Let's clone the repository on your machine.

The application includes the following files and folders.

  • src - Code for the application written in TypeScript, Express.js.
  • cli - Node cli script which can be performed from terminal.
  • __tests__ - to test all the features.
  • .env.example - A sample of .env which can be helpful for configuration.

Installation and Configuration

Let's move to the cloned directory with your terminal.

To install, build, and start the application for the first time, run the following commands in your shell using makefile (only for macOS and Linux):

make install

Let's rename from .env.example to .env and make sure all the necessary information is correct:

PORT=3000

DB_HOST=localhost
DB_PORT=
DB_DATABASE=
DB_USER=
DB_PASSWORD=

Already done? Cool! You are almost ready to enjoy the app. ⛳️

Build:

make build

Run:

make start

Test:

make test
make test-unit

cli:

Oh! You want to try the application cli feature from terminal

make node-cli

lint:

make lint

lintfix:

make lintfix

🎯 I know, you liked it.

To learn more, you can use the following commands: 

make help

At the same time, you can use the default npm commands like:

npm i
npm run build
npm run start
npm run cli

πŸ₯‡ Congrats!! You are good to go

tada! πŸŽ‰

About

Password Validator API & batch-validation with CLI script (TypeScript, Node.js, Express.js)


Languages

Language:TypeScript 79.9%Language:Makefile 13.9%Language:JavaScript 3.4%Language:Dockerfile 1.7%Language:Shell 1.2%