Skip to content

A Flarum (PHP Forum Framework) has public a public API Endpoint. This Javascript/Typescript Client allows to interact with the forum from Reactjs/Nodejs applications

License

Notifications You must be signed in to change notification settings

ara-foundation/flarum-js-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flarum Javascript Client

Flarum is a popular PHP Forum Framework. Flarum has public a public API Endpoint. This Javascript/Typescript Client allows to interact with the forum from Reactjs/Nodejs applications

Through this api, you can create users, moderate forum discussions.

This project is made in Ara Platform. Which means, you can participate, request features, or support maintainers.

Main Maintainer: Medet Ahmetson. For any questions, sign up on Ara Forum for free. Create a post with the "Sangha" tag. And in the title of the forum, write the "Flarum Javascript Client" prefix.

To speed up the reply, tag Medet Ahmetson in your post.

Requirements

Requires Nodejs 18 or above.

Instructions

First, you need to create API key in the Forum for the admin user. To see how it's done, run npx tsx ./test/start.ts

Or issue a 1 hour session token. Print the access token, if you enabled the verbose flag in FlarumApi. Add the session token to the .env. The command to issue a token:

Maintainers

  1. Simply upgrade the version in package.json. Then call to make it available in the NPMJS.

  2. Add the tag on git.

  3. Compile the Javascript:

tsc
  1. Then publish:
npm publish --access public

References for contributors

About

A Flarum (PHP Forum Framework) has public a public API Endpoint. This Javascript/Typescript Client allows to interact with the forum from Reactjs/Nodejs applications

Resources

License

Stars

Watchers

Forks

Packages

No packages published