An UUID generator with HTTP.
git clone https://github.com/BlackGlory/uid
cd uid
yarn install
yarn build
yarn bundle
yarn --silent startgit clone https://github.com/BlackGlory/uid
cd uid
yarn install
yarn build
yarn docker:buildversion: '3.8'
services:
uid:
image: 'blackglory/uid'
restart: always
ports:
- '8080:8080'GET /nanoid
Return a Nano ID as a text.
curl http://localhost:8080/nanoidawait fetch('http://localhost:8080/nanoid')
.then(res => res.text())GET /uuid
Return a uuid as a text.
curl http://localhost:8080/uuidawait fetch('http://localhost:8080/uuid')
.then(res => res.text())The environment variablesUID_HOSTandUID_PORTcan be used to set the address and port
that the server listens to.
The default values are localhost and 8080.
- JavaScript/TypeScript(Node.js, Browser): https://github.com/BlackGlory/uid-js