Giter Site home page Giter Site logo

adamant-2fa's Introduction

ADAMANT 2FA Demo application

What is ADAMANT 2FA

ADAMANT 2FA is a service to deliver one-time passwords (OTP) to ADAMANT Messenger account.

It is cheaper, more secure and reliable than SMS. ADAMANT 2FA advantages.

Live demo is available at 2fa-demo.adamant.im. For instructions, read Presenting ADAMANT 2FA article.

How to connect

If you own your service and want to add 2FA security for users, connect ADAMANT 2FA. It is perfect for crypto exchanges, webmail services, financial services.

To use ADAMANT 2FA, you have to install ADAMANT Console on your server and use Send message method. 2FA codes are sent from account set in Console’s configuration. Other than that, ADAMANT 2FA implementation is no different from classical approaches of sending one-time codes. Read more: How to connect ADAMANT 2FA to your business.

This repository is only an example of ADAMANT 2FA implementation.

Prerequisites

Setup

Clone repository and install dependencies

$ git clone https://github.com/Adamant-im/adamant-2fa.git
$ cd adamant-2fa && npm i
$ cd client && yarn install
$ cd ../

Create user and database

$ sudo -u postgres psql
postgres=# CREATE USER "adamant-2fa" WITH PASSWORD 'password';
postgres=# CREATE DATABASE "adamant-2fa" WITH OWNER "adamant-2fa";
$ sudo nano /etc/postgresql/10/main/pg_hba.conf
    local   adamant-2fa  adamant-2fa        md5
$ sudo service postgresql restart

Create tables for Loopback models

$ cd server && node create-lb-tables.js
$ cd ../

Development

Serve

$ node .
$ cd client && yarn serve

Build

$ cd client && yarn build
$ npm i -g serve
$ serve dist

adamant-2fa's People

Contributors

graycraft avatar adamant-al avatar zyuhel avatar realgoodprogrammer avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.