This repo contains the code (front- and back-end) necessary to override the newtab
page in Chromium browsers.
Currently, the dashboard displays the following data:
r/programmerhumor
At a glance, these are the things you'll need to do to get the extension running locally:
To add your own environment variables, run cp remix/.env.example remix/.env
. This will create the boilerplate file for you to start adding correct values to.
To generate your github personal access token, navigate to settings > developer settings > personal access tokens
, and create a new token with the following permissions:
To retrieve your Shortcut API token, navigate to settings > API Tokens
and create a new token. That's it!
On Mac, it is very easy to start the server on-boot. To do this, you'll need to globally install pm2
via npm i -g pm2
Once installed, you can do the following:
pm2 startup
- this will return another command to runvitals-dashboard/remix
npm run build
to generated a production-ready apppm2 start server/index.js
on the outputpm2 list
to verify that the server status is started. you can also verify this by opening up the newtab page (after installing the extension). if data gets returned from the api calls, pm2 is working correctlypm2 save
. once this is run, any pm2 process that is currently running will start up when your computer rebootsNOTE: pm2 will not run on every login; just reboots. if this turns out to be a problem, instructions will be added to use the Automator app.
Note: If you haven't already, run npm run build
script in the extension
folder to generate the minified files.
To install the chrome extension, open chrome://extensions
, then enable Developer Mode
at the top-right part of the page.
Clicking the Load Unpacked
button will open up the file explorer. Navigate to this repo on your drive, and select the entire extension/public
folder.
Once the extension has been loaded, open a new tab. Everything has been set up correctly, you should see the new dashboard, and after a few moments, it will be populated with your personal vitals!
To run the vitals dashboard without installing the chrome extension or running the node server on boot, follow the instructions below.
Both the frontend and backend need to be running for the application to work.
extension
folder, and run npm install
npm start
. runs live-server
against the public directory, and will open a new browser tab that has hot-reloading enabled.Note: If you want to update styles, you'll need to open another terminal tab at this same path and run npm run css:watch
remix
folder.env
file, and it has correct values in it (instructions above, if needed)npm start
in one terminal pane, and npm run start:dev
in anotherGITHUB_ENABLED
, GITHUB_POSITION
variables)