authkey
self-hosted, bare-bones licensing API
Basically a very limited version of what keygen.sh does.
Installing / Getting started
Setting up dev
git clone https://github.com/adekbadek/authkey.git
cd authkey/
npm i
npm run dev
Set up env variables by creating .env
file (see .env-example
). You'll need a mailgun account for some of them.
Will install the dependencies and run development server.
Running in production environment
npm start
Versioning
SemVer is used (with help of semantic-release).
For the versions available, see the link to tags on this repository.
Tests
with Jest
npm t
Style guide
using Standard
Api Reference
verb | endpoint | what it does |
---|
POST | /request/:address | creates a new auth key for the given address and sends an email with the auth key |
POST | /verify/:authkey | verifies the given auth key |
Database
a JSON file handled with lowdb