Skip to content

Seikho/last-rebase

Repository files navigation

Days Since Last Rebase

Installation

After cloning:

Standard

> yarn
> yarn build
> API_TOKEN=yourtoken node .
> open http://localhost:3000

Docker

> docker build rebase:latest .
> docker run -dt -p 3000:3000 --volume /yourconfig/folder:/code/data --env API_TOKEN=yourtoken --restart=always --name rebase rebase:latest
> open http://localhost:3000

API

To reset the rebase counter:

> curl -X POST http://localhost:3000/rebase?token=yourtoken
> # Responses:
> # 200 OK           { "message": "Successful" }
> # 400 Unauthorized { "message": "Unauthorized" }

To get a HTML version of the count:

> curl http://localhost:3000

To get a JSON verison of the count:

> curl http://localhost:3000/rebase
> # Example response: { "date": "2018-03-02T04:46:19.974Z", "count": 1 }

About

Days Since Last Rebase

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages