- nodejs - you know what it is :)
- firebase - hacker news API
- habitat - env variables
- nodemailer - email module
Hacker News notifier was built in order to get notifications if your domain has been posted on Hacker News. Tons of articles are going through the Hacker News (1 article per 5-10seconds) and you don't want to track all of those manually and hn-notifier comes to place! :)
In the project you can find env.dev
file with the mockup that you need to fill in.
-
Run
cp env.dev .env
- creates a copy of aenv.dev
file -
Fill in your credentials in
.env
file for email and domain you want to look for in HNexport EMAIL=example@gmail.com export PASS=password export DOMAIN=gmail.com export KEYSELECTOR=google export NOTIFY=github.com #set the domain you want to be notified
-
Run
npm install
to download all the dependencies with npm manager
node index.js
- start the app
You can use pm2 module to run your app on the background:
- Download and install pm2 ->
npm install pm2 -g
- Start app with
pm2 start index.js
Enjoy getting the emails and then start promoting your article :)