Skip to content

Latest commit

 

History

History

authenticator

Twitter Authenticator

Overview

Twitter authenticator is independent microservices built with NodeJS and Restify. It issue jwt auth token, and use the token to request testnet tokens.

Repository layout

Folder Name Description
/src/config Collection of settings.
/src/controllers Handle authentication logic.
/src/routers Defines all the endpoint routes.
/src/utils Collection of utility functions.

Requirement

Node.js LTS

Installation

  1. Clone the project.
git clone https://github.com/symbol/product.git
  1. Install the required dependencies.
cd faucet/authenticator
npm install
  1. Create .env in authenticator/ root directory
PORT=5002
TWITTER_APP_KEY=appkey
TWITTER_APP_SECRET=secret
JWT_SECRET=secret
  1. Start server.
npm run dev # Development
npm run start # Production

test

npm run test

lint

lint comment use for all file in src and test/.

npm run lint
npm run lint:fix