Hello Jacob,
Are there any guides on the best/fastest way to develop Fossbilling? I noticed CONTRIBUTING.md says instructions for developing locally are in the readme but I'm not seeing them.
The readme used to have simple building instructions, but it was removed when the steps got changed (the intention was to write a full guide and put it in our docs). We'll have to get that guide up in the near future and correct the CONTRIBUTING.md
file.
Until then, the building steps for FOSSBilling are as follows (all steps are from the main source code directory):
composer install
to install the PHP dependencies
npm install
to install NPM dependencies
npm run build
to build all of the front-end assets.
After that, the src
directory is ready be be zipped and uploaded to a web-server.
In terms of debugging, there's not much that is FOSSBilling specific. you can edit the config.php
file and set debug
to true
which will enable the usage of the whoops package for aid in debugging exceptions or unrecoverable errors. Enabling debug will also cause FOSSBilling to send errors to the browser console rather than only to the log file. Other than that, any generic PHP debugging technique should apply to FOSSBilling just fine and you can probably find some helpful info online.
Long term being able to improve the developer experience is something we are interested in and we'd be happy to get some suggestions on how it can be improved. (we know the documentation is currently a pain-point. If you have the time, the docs are open source and we'd appreciate contributions to them.)
Thanks for the interest in FOSSBilling!