Automate the syndication of RSS feed posts to various social media platforms seamlessly with Ferret. Simplify your content distribution process and reach your audience effortlessly.
All updated docs and blog posts related to ferret can be found here.
Site | Status |
---|---|
Mastodon | Supported |
Supported | |
Twitter(X) | Supported |
Supported | |
Thread | Supported |
Follow these steps to configure the project for your use:
-
To make changes and contribute to the project, fork the GitHub repository by following these steps:
- Visit the GitHub repository you want to fork.
- Click on the "Fork" button located at the top-right corner of the page.
- Wait for the forking process to complete.
- Once forked, you will have your copy of the repository in your GitHub account.
-
To securely store sensitive information and configure environment variables for your GitHub Actions workflow, follow these steps:
-
Setting Up GitHub Secrets:
- Visit your forked repository on GitHub.
- Go to the "Settings" tab.
- In the left sidebar, click on "Secrets".
- Click on "New repository secret".
- Add the following secrets:
MASTODON_ACCESS_TOKEN LINKEDIN_ACCESS_TOKEN TWITTER_CONSUMER_KEY TWITTER_CONSUMER_SECRET TWITTER_ACCESS_TOKEN TWITTER_ACCESS_TOKEN_SECRET USER_EMAIL: GitHub User Email USER_NAME: GitHub User Name FACEBOOK_ACCESS_TOKEN THREAD_ACCESS_TOKEN
-
Setting Up GitHub Variables:
Visit your forked repository on GitHub.
- Go to the "Settings" tab.
- In the left sidebar, click on "Secrets".
- Scroll down to the "Environment Variables" section.
- Add the following variables:
MASTODON_INSTANCE_URL FACEBOOK_PAGE_ID THREAD_USER_ID
For detailed instructions on how to add secrets and variables in GitHub, refer to the GitHub documentation: Creating and storing encrypted secrets.
-
-
config.json contains the configurations regarding your connectors.
{ "last_run_time": "2024-02-11T07:07:57.635936+01:00", "base_url": "https://blogs.bitesinbyte.com", "feed_endpoint": "/feed.xml", "does_meta_og_image_has_relative_path": true, "socials": [ "facebook", "linkedin", "mastodon", "twitter", "thread" ] }
-
By default, GitHub disables workflows when you fork a repository. Since Ferret depends on GitHub Actions/Workflows, you can enable them by following these steps:
Note
Ensure that you've provided the correct values for each secret and variable according to your setup. These configurations are necessary for the smooth functioning of the project and integration with external services.
Follow these steps to set up and run the project locally on your machine:
Prerequisites Make sure you have Go version 1.21.5 installed on your system. If not, follow these steps to download and install Go:
- Visit the official Go website: https://golang.org/dl/
- Download the installer for your operating system.
- Follow the installation instructions provided on the website.
Setting up Environment Variables
Before running the application locally, ensure you have a .env file in the root directory of the project. This file should contain the following environment variables:
MASTODON_INSTANCE_URL=
MASTODON_ACCESS_TOKEN=
TWITTER_CONSUMER_KEY=
TWITTER_CONSUMER_SECRET=
TWITTER_ACCESS_TOKEN=
TWITTER_ACCESS_TOKEN_SECRET=
RSS_FEED_URL=
LINKEDIN_ACCESS_TOKEN=
FACEBOOK_ACCESS_TOKEN=
FACEBOOK_PAGE_ID=
THREAD_USER_ID=
THREAD_ACCESS_TOKEN=
Fill in the values for these variables according to your environment.
Building the Application To build the application, execute the following command in your terminal:
go build -o bin/ferret ./cmd/ferret
This command will compile the application and generate an executable file named ferret inside the bin directory.
Running the Application Once the application is built, you can run it using the following command:
./bin/ferret
This command will execute the compiled ferret binary and start the application locally.
Note
Ensure all required environment variables are correctly set in the .env file before running the application.
Licensed under the MIT license.