Skip to content

kpachhai/did-email-validator

Repository files navigation

Did email validator Rest API

To start, clone did-email-validator repo

git clone https://github.com/tuum-tech/did-email-validator.git;
cd did-email-validator;

Prerequisites

./install.sh

Run

  • Copy example environment file
cp .env.example .env
  • Modify .env file with any number of wallets to use
  • Start API server
./run.sh start
  • OPTIONAL: You can also run using docker
docker build -t did-email-validator .; 
docker container stop validator || true && docker container rm -f validator || true; 
docker run -p 8081:5000 -v $PWD/.env:/src/.env --name validator did-email-validator

Verify

  • To check whether the API is working:
curl http://localhost:8081
  • To validate an email:
curl -XPOST -H "Content-Type: application/json" -H "Accept: application/json" -d '{"jwt": "JWT_TOKEN_HERE"}' http://localhost:8081/v1/validation/callback

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published