Skip to content

saumya/MastodonReact

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Toot API integration

Libraries used

Create-react-app

First is npx and second is npm

npx create-react-app my-app
npm install react-router-dom --save

Toot

app.config.js

This file is located inside comps/ folder. The file contents look as below.

// visibility : public, unlisted, private, direct

const AppConfig = {
    'mastodon':{
        'uri' : 'mastodon instance url',
        'accessToken' : 'your access token for developer',
        'statusVisibility' : 'direct',
    }
}

export default AppConfig;

Deploy

For deploying the build from different place have a look at this.

TLDR; package.json add the following line.

"homepage": ".",

About

A react app for API experiements

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published