2019-07-29 20:02:33 +02:00
# isahn
2019-08-05 10:32:59 +02:00
Important stories alert for Hacker News.
2019-08-05 11:10:21 +02:00
< p align = "center" >
< img src = "icon.png" >
< / p >
2019-08-05 11:07:28 +02:00
2021-08-08 00:20:20 +02:00
< h2 align = "center" >
< a href = "https://t.me/important_stories_alert_hacknews" src = "icon.png" alt = "Telegram channel" > Telegram channel< / a >
< / h2 >
2019-08-05 10:32:59 +02:00
The entire code in this repository is in charge of feeding the Telegram channel. Every hour check for a new story with more than 600 points in Hacker News.
2019-07-29 20:02:33 +02:00
## Installation
2019-08-04 11:00:35 +02:00
``` sh
2019-08-02 00:01:34 +02:00
cp config-example.edn config.edn
2019-08-04 11:00:35 +02:00
```
2019-07-29 20:02:33 +02:00
2019-08-02 00:01:34 +02:00
## Usage
2019-07-29 20:02:33 +02:00
2019-08-04 11:00:35 +02:00
``` sh
2019-08-05 11:14:52 +02:00
cp config-example.cdn config.cdn
2019-08-05 10:32:59 +02:00
java -jar target/uberjar/isahn-[version]-standalone.jar
```
2021-08-08 00:20:20 +02:00
## Build? Ok
2019-08-05 10:32:59 +02:00
Install [Leingengen ](https://leiningen.org/ ) and then...
``` sh
make
2019-08-04 11:00:35 +02:00
```
2019-08-04 11:22:57 +02:00
## Development
### Check format
2019-08-04 11:00:35 +02:00
``` sh
lein cljfmt check
```
2019-08-04 11:22:57 +02:00
### Linter
2019-08-04 11:00:35 +02:00
``` sh
2019-08-04 11:22:57 +02:00
clj-kondo --lint src
2019-08-04 11:00:35 +02:00
```
2019-08-04 11:22:57 +02:00
### Check idiomatic
2019-08-04 11:00:35 +02:00
``` sh
lein auto kibit
```
2019-08-04 11:22:57 +02:00
### Generate doc
``` sh
lein codox
```
2019-08-05 10:32:59 +02:00
### All
``` sh
make check
```