Skip to content

Latest commit

 

History

History
49 lines (29 loc) · 1.63 KB

README.md

File metadata and controls

49 lines (29 loc) · 1.63 KB

views-badge

license views

A badge generator service to count page views.

Usage

Copy the markdown snippet and change the page.

![views](https://views-badge.vercel.app/{page})

Deploy

Install dependencies.

$ yarn install --production

Start service.

$ yarn serve

Docker

Build image.

$ docker build -t views-badge .

Run container.

$ docker run -d -p 8000:8000 --name views-badge views-badge

Configuration

Environment variables Description
BASE_API_PATH The counter service API (default is https://countapi.xyz) can be replaced with a self-hosted CountAPI.
HOST The hostname or IP address of the service.
PORT The port number of the service.

License

MIT © AkiJoey