This is the page we use for tracking votes on PRs. It was one of my first react apps and is written awfully, but hey, thats how it be.
npm installand let the neutron star birth in your hard drive.npm run buildto generate thedistfolder.- Copy the assets to your preferred webroot location.
npm install.npm run startfor a webpack dev server.- Edit
src\js\core\api.jsand changeexport const API = new ApiManager();toexport const API = new ApiManagerMock();to be able to actually mock API calls.
The backend can be found in prs_api.php. It's PHP because thats what the forums use and we can easily integrate with the forum at a code level without needing to do a ton of rest calls. It's awfully made but it works, and seamlessly does RBAC based on forum groups for what part of the dev team you are in.
Repo will be published soon, its mid retooling.
- Get a copy of Invision Community. The instructions for this are out of scope for this readme.
- Deploy
schema.sqland setup the credentials appropriately in thegetPrDB()function. - Put this script somewhere in a subdirectory of the main IPB folder, so that
../init.phpis relative to it. - Tweak all the group mappings for your own testing.
- Point the API controller at it - note that CORS may royally screw you over here because it relies on sending the forum cookies to auth your session.
If you find anything glaringly wrong with this please affectedarc07 on discord know.
This repository is licensed under AGPL-3. You can find a copy in LICENSE.MD.