Live demo: https://news.kipalog.com/
Required Rust version: nightly. We hate comfort zone.
Set rust nightly run command: rustup default nightly
Follow instructions install rust
Use Postgres
postgres://username:password@localhost/database_name
.env
fileCopy file .env.example
to .env
and add your config db url.
git submodule update --init --recursive
1. Install Diesel
cargo install diesel_cli --no-default-features --features=postgres
2. Migrate DB
diesel migration run
3. Install deps
cargo install
cargo run --bin server
cargo build --release
Use yarn
Run command: yarn install && yarn watch
Config cronjob
In command line run: crontab -e
and add job 0 */1 * * * /path/to/bin/crawler
.
This job will run pass every hour at minute 0.
MIT & APACHE-2