mirror of
https://github.com/muety/wakapi.git
synced 2023-08-10 21:12:56 +03:00
Update Readme.
This commit is contained in:
16
README.md
16
README.md
@@ -1,14 +1,22 @@
|
|||||||
# 📈 wakapi - A WakaTime-compatible backend for coding statistics
|
# 📈 wakapi
|
||||||
|
**A minimalistic, self-hosted WakaTime-compatible backend for coding statistics**
|
||||||
|
|
||||||
|
[](https://buymeacoff.ee/n1try)
|
||||||
|
|
||||||
|
## Prerequisites
|
||||||
|
* Go >= 1.10 (with `$GOPATH` properly set)
|
||||||
|
* A MySQL database
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
* Create an empty MySQL database
|
* Create an empty MySQL database
|
||||||
* Clone repository
|
* Get code: `go get github.com/n1try/wakapi`
|
||||||
* Copy `.env.example` to `.env` and set database credentials
|
* Go to project root: `cd "$GOPATH/src/github.com/n1try/wakapi"`
|
||||||
* Install dependencies: `go get -d ./...`
|
* Install dependencies: `go get -d ./...`
|
||||||
|
* Copy `.env.example` to `.env` and set database credentials
|
||||||
* Set target port in `config.ini`
|
* Set target port in `config.ini`
|
||||||
* Build executable: `go build`
|
* Build executable: `go build`
|
||||||
* Run server: `./wakapi`
|
* Run server: `./wakapi`
|
||||||
* Edit your local `~/.wakatime.cfg` file and add `api_url = https://your.server:someport/api/heartbeat`
|
* On your development computers, edit your local `~/.wakatime.cfg` file and add `api_url = https://your.server:someport/api/heartbeat`
|
||||||
|
|
||||||
**First run** (create user account): When running the server for the very first time, the database gets populated. Afterwards you have to create yourself a user account. Until proper user sign up and login is implemented, this is done via SQL, like this.
|
**First run** (create user account): When running the server for the very first time, the database gets populated. Afterwards you have to create yourself a user account. Until proper user sign up and login is implemented, this is done via SQL, like this.
|
||||||
* `mysql -u yourusername -p -H your.hostname`
|
* `mysql -u yourusername -p -H your.hostname`
|
||||||
|
Reference in New Issue
Block a user