https://github.com/vlazic/we-are-talking-about-practice
Do you want to be a better programmer?
https://github.com/vlazic/we-are-talking-about-practice
coding-challenge gitub node practice typescript wakatime
Last synced: 10 months ago
JSON representation
Do you want to be a better programmer?
- Host: GitHub
- URL: https://github.com/vlazic/we-are-talking-about-practice
- Owner: vlazic
- License: mit
- Created: 2020-03-03T20:20:22.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-10-19T12:33:40.000Z (over 1 year ago)
- Last Synced: 2024-12-12T23:46:27.625Z (over 1 year ago)
- Topics: coding-challenge, gitub, node, practice, typescript, wakatime
- Language: TypeScript
- Homepage:
- Size: 4.27 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# We Are Talking About Practice
Do you want to be a better programmer?
Yes, we are talking about practice, man!
I've decided to code at least 3 hours per day while publishing at least one commit to Github.
At 22h if I dont achieve this goals I will receive email like these:

Do you want to try it yourself?
Follow these instructions:
## Instructions
1. Start using [WakaTime](https://wakatime.com), so you can track how much time you spend coding
2. Clone this repo: `git clone https://github.com/vlazic/we-are-talking-about-practice` on your server
3. Create `.env` file: `cp .env.example .env` and change sample data:
```ini
# your email
TO_EMAIL=kody.stehr19@ethereal.email
# notify if there is no commits in last COMMIT_HOURS_WARNING hours
# this should probably match hour at which cronjob is running this script
COMMIT_HOURS_WARNING=22
# notify if number of coding hours is bellow this value
CODING_HOURS_WARNING=3
# Your Github username
GITHUB_USER=vlazic
# Your WakaTime API key
WAKATIME_API=39a81265-5a52-4192-8112-e0b16b4819dc
# SMTP server info
SMTP_HOST=smtp.ethereal.email
SMTP_PORT=587
SMTP_USER=kody.stehr19@ethereal.email
SMTP_PASS=NAsSRCgwcWa24DBFRc
SMTP_FROM_MAIL=kody.stehr19@ethereal.email
```
4. Install dependencies: `npm install`
5. Build it: `npm run build`
6. Create cron job: `0 22 * * * node PATH_TO_REPO/dist/index.js`
## Alternate Instructions
Practice by creating your own similar script which suits you better. This one is bloated because I wanted to try out Node with Typescript :)

https://www.youtube.com/watch?v=eGDBR2L5kzI