-
Notifications
You must be signed in to change notification settings - Fork 7
Installation guide
Patchwork is a framework to add a suite of plug-ins to a Mastodon server, creating layers between the underlying plumbing of Mastodon and the frontend app used by a user to access it (usually also Mastodon).
Before running Patchwork, please ensure you have set up a Mastodon server and it is running properly.
You can find the instructions to set up a Mastodon server here.
Patchwork begins with the Dashboard.
Once your Mastodon server is up and running, please begin with this repository to set up the Patchwork Dashboard.
This is the core of Patchwork’s frame, introducing new features itself to make your server more powerful, and allowing you to install additional Patchwork plug-ins with ease.
Please follow the simple steps below to install Patchwork Dashboard:
- Clone this repository (Patchwork Dashboard) in your server:
git clone git@github.com:patchwork-hub/patchwork_dashboard.git- Create .env file by copying the .env.sample file:
cp .env.sample .env-
Read the comments mentioned in the ENV file thoroughly and configure the environment accordingly.
-
Install the gems:
bundle install- Run database migrations:
bundle exec rails db:migrate- Import required data and create a master admin account:
bundle exec rails db:seed- Start your server(change the port number according to your need):
bundle exec rails s -p 3002To fully activate your Patchwork Dashboard, add an API key by following below steps:
-
Generate an API key 1.1 Go to Patchwork Hub, register a new account and verify it. 1.2 Once you have verified it, generate an API key on the landing page of the Patchwork Hub.
-
Add the generated API key in your Patchwork Dashboard 2.1 Login to your Patchwork Dashboard with the master admin account. 2.2 On the left-side menu, click the "API key". 2.3 In the API key page, add the Key and Secret values generated from the Patchwork Hub. 2.4 After entering the credential, the Patchwork Dashboard is fully activated.
Next, expand your server's capabilities by installing plug-ins.
Choose from this list:
Filter timelines with defined hashtags & keywords, and manage your server's connection to Threads & Bluesky.
- Add this line to your Mastodon application's Gemfile:
gem "content_filters", git: "https://github.com/patchwork-hub/content_filters"- Execute to install the gem:
$ bundle install- After installing the gem, restart your application to load it in your application.
Give users on your server advanced posting options, including custom character limits and text formatting.
- Add this line to your Mastodon application's Gemfile:
gem "posts", git: "https://github.com/patchwork-hub/posts"- Install The gem
bundle install- After installing the gem, restart your application to load it in your application.