GithubHelp home page GithubHelp logo

cpssd / rabble Goto Github PK

View Code? Open in Web Editor NEW
7.0 8.0 1.0 1.7 MB

Rabble is a federated blogging platform built with ActivityPub

License: MIT License

TypeScript 21.39% Dockerfile 1.09% Shell 2.18% JavaScript 0.55% Go 21.97% Python 45.77% CSS 0.91% Jupyter Notebook 6.13%
federated-social-web blog blog-engine federation federated decentralized decentralised

rabble's Introduction

Rabble

Building

Requirements

The only requirement to build Rabble is to have docker installed.

Steps

Run run_build.sh and the output binaries will be written to a build_out directory.

Configuration

There are a few parameters you can use to configure your Rabble instance. To change these options set the corresponding environment variable when running run_build.sh. Unset values have sensible defaults.

  • RABBLE_SEARCH_TYPE:
    • bleve (default)
    • simple-search
  • RABBLE_FOLLOW_RECOMMENDER_METHOD:
    • none (default)
    • surprise
    • cn
    • graphdist
  • RABBLE_POSTS_RECOMMENDER_METHOD:
    • none (default)
    • random

Running Rabble

After doing a build you can run Rabble by executing the start.sh script. Docker and docker-compose are both requried.

NOTE: If you have made changes to a microservice it will only be rebuilt if its context directory changes. To manually rebuild run docker-compose build --no-cache <service_name>

Adding a new microservice to the build

To add a new microservice follow these steps:

  • Add new build dependencies (compilers, libraries, ...) to build_container/Dockerfile
  • Add the build commands to build_container/build.sh
  • Create a Dockerfile in the microservice's directory that runs the microservice
  • Add the new service to docker-compose.yml
  • Test!

Running Rabble in Production

To run Rabble on a production server, first go and edit your configs.

Config Path Description
containers/gen_first_config.sh Build Environment Variables
chump/rabble_config.js Frontend constants

The most important environment variables to change are:

  • RABBLE_EXTERNAL_ADDRESS - gen_first_config.sh - this should be the domain of the your instance

To set up continuous integration, read the redeploy instructions

rabble's People

Contributors

cianlr avatar fosterjen avatar iandioch avatar sailslick avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

sailslick

rabble's Issues

Be able to follow a blog from Plume

Ensure interop with Plume. Important to ensure easy interop in order to promote healthy federated network. Can also then use Plume instances to test recommender systems, etc.

Add image host support

Allow a user to add images to their blog post without hotlinking them. ie. host them on the instance itself.

Create homepage explaining Rabble

Include explanations of: this product, the federation, which other federated services it supports.

Mastodon does a great job of this, use it as inspiration.

Create config file for instance hosts

Allow them to turn off things like recommender systems, commenting, etc, without having to reach into the source code.
This may be desirable if they want to reduce resources consumed by Rabble, or for data privacy reasons, etc.

Template support

Allow an instance host to use a different template, ideally from a standardised templating engine, eg. Mustache

Set up containers

important for ease of setup of a new node
(and also for development)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.