Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
feed-parser @ 79430b2 Update crawler Jan 17, 2018
migrations
src Crawl body of the feed (#39) Oct 10, 2018
www Enhancement FE text filter Oct 10, 2018
.env.example Initial commit 🚀 Jul 26, 2017
.gitignore Add CI integration Sep 23, 2017
.gitmodules Update crawler Jan 17, 2018
.travis.yml Added unit test helpers module (#26) Oct 3, 2017
Cargo.lock Fix thousand of bugs Oct 5, 2018
Cargo.toml Update crawler Jan 17, 2018
Makefile Update makefile to automate the connecting process (#35) Oct 26, 2017
README.md Update README.md (#37) Oct 10, 2018
Rocket.toml Initial commit 🚀 Jul 26, 2017
TODO.org
favicon.ico Initial commit 🚀 Jul 26, 2017
unblock Initial commit 🚀 Jul 26, 2017

README.md

Codedaily Build Status

Live demo: https://news.kipalog.com/

Setup

Install Rust

Required Rust version: nightly. We hate comfort zone. Set rust nightly run command: rustup default nightly

Follow instructions install rust

DB

Use Postgres

  • Create your db name and your credentials
  • Put theme into url like: postgres://username:password@localhost/database_name
  • Add url into .env file

Config DB

Copy file .env.example to .env and add your config db url.

Pull all git submodules

git submodule update --init --recursive

Install

1. Install Diesel
cargo install diesel_cli --no-default-features --features=postgres

2. Migrate DB
diesel migration run

3. Install deps
cargo install

Run local development server

cargo run --bin server

Build release

cargo build --release

Setup frontend

Use yarn

Run command: yarn install && yarn watch

Deploy

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.

LICENSE

MIT & APACHE-2