MCPcopy Index your code
hub / github.com/Kilerd/rubble

github.com/Kilerd/rubble @0.3.3

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.3.3 ↗ · + Follow
1,150 symbols 3,049 edges 42 files 1 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Rubble

a lightweight blog engine written by Rust.

Feature

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

  • [x] Basic Content System without categories
  • [ ] Multiple administrators supported
  • [x] Administractor management panel
  • [x] Article management panel
  • [x] Draw supported
  • [x] Customized template
  • [x] RSS supported

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
  • panel.html dashboard of admin panel
  • login.html admin login page
  • homepage.html index of whole site
  • archives.html 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.

How to use it

After deploying rubble to your host, the first thing you need to do is login to the admin panel with url http://yourdomain.com/admin. And the default admin user and password is as follow: - Username: admin - Password: password

after logging in, please modify the default password of admin. Then you can enjoy the whole project system.

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 kilerd/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

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 :

version: "3"
services:
  rubble:
    image: kilerd/rubble:latest
    environment:
      DATABASE_URL: postgres://root:password@postgres/rubble
    depends_on:
      - postgres
    networks:
      - backend

  postgres:
    image: postgres:9-alpine
    restart: always
    environment:
      POSTGRES_USER: root
      POSTGRES_PASSWORD: password
      POSTGRES_DB: rubble
    networks:
      - backend

networks:
  backend:

Extension points exported contracts — how you extend this code

CRUD (Interface)
(no doc) [3 implementers]
src/models/mod.rs

Core symbols most depended-on inside this repo

postgres
called by 40
src/data.rs
render
called by 39
src/data.rs
text
called by 37
src/routers/mod.rs
html
called by 29
src/routers/mod.rs
create
called by 28
src/models/user.rs
update
called by 20
src/models/user.rs
load
called by 15
src/models/setting.rs
e
called by 5
templates/resources/prism.js

Shape

Function 1,095
Method 37
Class 17
Interface 1

Languages

TypeScript92%
Rust8%

Modules by API surface

templates/resources/assets/plugins/charts-c3/js/d3.v3.min.js389 symbols
templates/resources/assets/plugins/fullcalendar/js/moment.min.js133 symbols
templates/resources/assets/js/vendors/chart.bundle.min.js128 symbols
templates/resources/assets/js/vendors/jquery-3.2.1.min.js86 symbols
templates/resources/assets/js/vendors/jquery-3.2.1.slim.min.js71 symbols
templates/resources/assets/plugins/fullcalendar/js/fullcalendar.min.js66 symbols
templates/resources/assets/js/vendors/bootstrap.bundle.min.js42 symbols
templates/resources/assets/js/vendors/selectize.min.js36 symbols
templates/resources/assets/js/vendors/jquery.tablesorter.min.js35 symbols
templates/resources/assets/js/require.min.js33 symbols
templates/resources/assets/plugins/charts-c3/js/c3.min.js25 symbols
src/routers/admin.rs15 symbols

Datastores touched

rubbleDatabase · 1 repos

For agents

$ claude mcp add rubble \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact