Featured on my github profile, you can use this project and all you need to fill out is the .env and then you can put the gist on your profile! Thanks for coming by!
The absolute first step to running this project on your own is downloading the source code, master
may potentially have bugs so download this project from one of the released versions here.
-
Create a Personal Access Token with Github here, you will need the scope
gist
. Once you have your new Personal Access Token set that as an environment variable underGITHUB_TOKEN
. -
Create a Public Github Gist here, once created you will be redirected to a url formatted like
https://gist.github.com/username/{GIST_ID}
. Copy the gist id from the url and set that as an environment variable underGIST_ID
. -
Create an account on Wakatime's website here, or if you already have an account skip this step.
-
Navigate to the
Share > Embed
section of Wakatime's website here, and create an Embeddable Code with the default settings except for the following:
- Format:
JSON
- Chart Type:
Coding Activity
-
Under the output you will see a
url: https://wakatime.com/share/@{SHARE_ID}
, copy the share id from the url and set that as an environment vairable underTIMES_PATH
formatted likeshare/@xxxxxxxxxx/xxxxxxxxxx
. -
Repeat steps 4 & 5 but instead of
Chart Type: Coding Activity
you wantChart Type: Languages
, and set that as the environment vairableLANGS_PATH
with the same formatting. -
Run the command
npm install
to install all of the required dependencies for the updater to run. -
Start the updater with the command
npm start
.
Congratulations, you are done! Enjoy the gist updater and please consider leaving a ⭐ on this repo if you enjoy. If you have any questions or need help with something please create an Issue or contact me via twitter.
Docker image available at ghcr.io/hox/wakatime-api:latest
.