Simple rust blog engine
Go to file
2018-10-23 14:03:06 +08:00
migrations fix: using encrypted password in database migration file. 2018-10-14 10:23:26 +08:00
src fixed: the complete of url shortcut. 2018-10-22 21:55:03 +08:00
static feat: add secret_key environment variable 2018-10-23 14:03:06 +08:00
.gitignore feat: add rocket.toml 2018-09-14 00:18:59 +08:00
Cargo.toml feat: use rust-crypto to encrypt password with sha3 hash alg 2018-10-14 00:55:20 +08:00
Dockerfile feat: add secret_key environment variable 2018-10-23 14:03:06 +08:00
entrypoint.sh feat: use multistage docker to minimize image's size 2018-10-08 23:36:36 +08:00
LICENSE Initial commit 2018-09-10 11:01:21 +08:00
Procfile chore: remove secret_key from config file 2018-10-07 14:25:50 +08:00
README.md doc: create readme file 2018-10-14 14:09:40 +08:00
Rocket.toml doc: create readme file 2018-10-14 14:09:40 +08:00
rust-toolchain feat: add heroku support to build a runnable demo. 2018-10-07 12:38:31 +08:00
RustConfig chore: add diesel flag for diesel cli 2018-10-07 13:31:35 +08:00

Rubble

a lightweight blog engine written by Rust.

PS: And this project is still working in progress, so API of it are very unstable, including the content of the database migrations. I can promise that the elder version of it can be upgraded to the newest one. It means that the best way is installing a new one , instead of upgarding it.

Feature

Cause this project is also the tentative staff I try to write something in Rust, it would not include too many features.

  • Basic Content System without categories
  • Multiple administrators supported
  • Administractor management panel
  • Article management panel
  • Draw supported
  • Customized template
  • RSS supported
  • GraphQL API supported(maybe)

Template

Project rubble highly depends on tera, a fast and effective template engine in Rust, which means that you can write your own template with tera syntax.

There are files in template folder as follow, which are the template for each page:

  • admin folder
    • index.tera index of admin panel
    • login.tera admin login page
  • index.tera index of whole site
  • archives template of single article page

Obviously you can learn how to write this template by the guide of official template folder, and how to use tera syntax in tera's official website.

Deploy using Docker

you can easily use Docker to create your own rubble application. And the latest version of it and each tagged version would be built as docker images storing in Docker Hub automatically. So you can easily pull those images by using docker pull rubble:latest

Rubble uses PostgresQL as data storage, so before strating rubble application, you need to start your postgres service and link it to rubble.

Rubble image can accept some environment variable for setting up:

  • DATABASE_URL url of postgresQL
  • SECRET_KEY secret ke of rubble for creating secret cookies

Docker Stack

But we recommend to deploy rubble with Docker Swarm or Kubenetes. here is a simple file to create a whole rubble application with postgresQLdocker-compose.yml :