brillout / clocktab

Source code of Clock Tab.
https://clocktab.com
42 stars 16 forks source link

Question about the source files #7

Open MillennialDIYer opened 4 years ago

MillennialDIYer commented 4 years ago

Hey there,

I've been using ClockTab for years. It's really great for leaving on a second monitor while I'm not using it. That said, since I have my own hosting and WordPress site, I've been wondering about using the source files to have my own 'ClockTab' on a subdomain or subfolder of my website, just for my own personal use and as a learning experience.

I tried uploading the contents of the 'src' folder to the subdomain root on a staging site, and all I'm getting is a spinning circle. I've browsed through the index.html file and haven't seen anything domain-specific so I'm not sure what it is that I'm not aware of. I don't know if you'd be willing to point me in the right direction as to the minimum files I'd need to modify to get it to work? If I could at least get it to load it would probably be pretty interesting to play around with it and set the defaults to my liking on my own subdomain, just for my own use.

By the way, you should really consider signing up as a Brave Publisher. Brave is my favorite web browser right now, and considering how ClockTab is likely to be left in open in the background, it may very well pay off for those who have 'Auto-Contribute' (Brave Cryptocurrency tokens) activated, as I understand they are allocated based on the duration of the visit. And there isn't really any downside to signing up. I'd definitely throw some crypto your way every now and then if you did.

Anyway, if you have the time and inclination to give me some insight, that would be great. If not I definitely understand.

brillout commented 4 years ago

Hi @MillennialDIYer !

Are you familiar with npm and Parcel? (https://github.com/parcel-bundler/parcel, https://www.npmjs.com/).

I'm curious; what's your plan with your local copy of Clock Tab?

you should really consider signing up as a Brave Publisher

Done. I've got 0.26 BAT; I guess Brave isn't working out Clock Tab?

MillennialDIYer commented 4 years ago

Thanks for the response!

I'm not familiar with NPM and Parcel, but I'm not opposed to putting some time into it if it's accessible and the basics would suffice. I've mostly dabbled in a bit of PHP, Javascript, C++ and so on as I've needed, mostly just as a means to an end.

As far as plan, it really boils down to it would be cool to have my own. Not much more or less. Just for my own use, with no links posted anywhere and noindex'd. Pretty similar to why I decided to self-host my own YOURLS URL Shortener instead of using Bitly. On the same basis that it's open source, has a cool-factor and probably wouldn't be too complicated an endeavor. If it is, than I recognize it probably isn't worth the time investment.

I always thought it would be a cool project, but what finally motivated to give it a look is that my cookies must've gone deleted or something because the custom theme I had set in ClockTab got reset and I can't find the URL I had used as a background. Having it hard coded to my liking on my own URL is kinda appealing, albeit a little narcissistic ;) .

Regarding Brave, on clocktab.com I still get the message "Not Yet Verified - This creator has not yet signed up to receive contributions from Brave users.". I don't know if you just signed up and it still hasn't pushed out. I have some 97 BAT, and I'd be happy to send most of that your way once it verifies.

brillout commented 4 years ago

It's mostly about npm. Install Node.js (which includes npm), clone the Clock Tab repo and then run npm run dev. That should for the beginning. Let me know once you got there.

About Brave, I guess it will take time. Brave told me that clocktab.com is signed up.