Skip to content

This is a social data API that allows you to fetch and store social data from various social media platforms

Notifications You must be signed in to change notification settings

Tbeaumont79/social-data-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

social-data-api

This is a social data API that allows you to fetch and store social data from various social media platforms. Actually the project is a work in progress and will be updated in the future, it work with the bluesky Api and the github Api.

Installation

First clone the repository then run the following command:

npm install

You have to create a .env file and add the following variables:

PORT=3000
SUPABASE_URL=YOUR_DATABASE_URL
SUPABASE_KEY=YOUR_DATABASE_KEY
GITHUB_TOKEN=YOUR_GITHUB_TOKEN
API_KEY=YOUR_API_KEY
API_SECRET=YOUR_API_SECRET

Also you need to create a supabase database and add the following tables:

CREATE TABLE IF NOT EXISTS bluesky_posts (
    id SERIAL PRIMARY KEY,
    url VARCHAR(255) UNIQUE NOT NULL,
    created_at TIMESTAMP NOT NULL,
    author VARCHAR(255) NOT NULL,
    text VARCHAR(255) NOT NULL,
    langs VARCHAR(255) ARRAY NOT NULL,
    embed_description VARCHAR(255) NOT NULL,
    embed_title VARCHAR(255) NOT NULL,
    embed_url VARCHAR(255) NOT NULL
);

Usage

npm start

Test

You will notice the test folder, these tests are not implemented yet.

About

This is a social data API that allows you to fetch and store social data from various social media platforms

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published