- Overview
- Repository layout
- Instructions
Twitter authenticator is independent microservices built with NodeJS and Restify. It issue jwt auth token, and use the token to request testnet tokens.
| 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. |
Node.js LTS
- Clone the project.
git clone https://github.com/symbol/product.git
- Install the required dependencies.
cd faucet/authenticator
npm install
- Create
.envin authenticator/ root directory
PORT=5002
TWITTER_APP_KEY=appkey
TWITTER_APP_SECRET=secret
JWT_SECRET=secret- Start server.
npm run dev # Development
npm run start # Productionnpm run test
lint comment use for all file in src and test/.
npm run lint
npm run lint:fix