Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/huytd/codedaily-v3
https://github.com/huytd/codedaily-v3
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/huytd/codedaily-v3
- Owner: huytd
- Created: 2017-06-01T23:34:54.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-07T01:13:52.000Z (almost 2 years ago)
- Last Synced: 2024-08-01T20:48:10.400Z (3 months ago)
- Language: Rust
- Homepage: https://news.kipalog.com/
- Size: 1.03 MB
- Stars: 87
- Watchers: 6
- Forks: 14
- Open Issues: 28
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Codedaily [![Build Status](https://travis-ci.org/huytd/codedaily-v3.svg?branch=master)](https://travis-ci.org/huytd/codedaily-v3)
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](https://www.rust-lang.org/en-US/install.html)
### 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=postgres2. Migrate DB
diesel migration run3. 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