- Plugin Description - What the plugin does provide
- Install - How to install the B2SHAREBRIDGE
- Development - Guide for contributing to the plugin
This owncloud/nextcloud plugin allows the user to directly publish files from his personal cloud store to EUDAT B2SHARE. The user interface of B2DROP is extended with an icon to publish files, and with a table view that shows the last published files. If a user wants to publish a file, this transfer is done via the B2DROP server in the background.
- on your B2DROP server go to the <owncloud/nextcloud>/apps directory
cd nextcloud/apps
- git clone this repository
git clone https://github.com/EUDAT-B2DROP/b2sharebridge.git b2sharebridge
- then install the dependencies using:
make composer
- enable the app on the B2DROP owncloud/nextcloud web interface or in the console with:
sudo -u <www-data/your webserver user> php occ app:enable b2sharebridge
- configure a B2SHARE endpoint in the B2DROP owncloud/nextcloud admin menu
There are no formal requirements to participate. If there are questions, feel free to contact the authors mentioned in AUTHORS.md
The app is implemented with Vue.js. Build the frontend code after doing changes to its source
in src/
which requires to have Node and npm installed:
- 👩💻 Run
make dev-setup
to install the frontend dependencies - 🏗️ To build the Javascript whenever you make changes, run
make build-js
To continuously run the build when editing source files you can make use of the make watch-js
command.
In order to run tests you have to install nextcloud.
Make sure you have the dependencies installed with make composer
.
warning
If you don't put the b2sharebridge-app at
nextcloud/apps
you need to
- Set the
NEXTCLOUD_ROOT
variable to your nextcloud directory, for exampleexport NEXTCLOUD_ROOT=/var/www/nextcloud
You can now run all tests with make test
, which runs unit and integration tests.
For manual testing you need to install the b2sharebridge-app and enable it in the nextcloud server.
warning
If you don't put the b2sharebridge-app at
nextcloud/apps
you need to
- Create a softlink at
nextcloud/apps
withls -s <your dev directory> b2sharebridge
in order to install the app- You may also need to change the owner of the app-files with
sudo chown -R <webserver-user:webserver-group> </path/to/your/>b2sharebridge
. Alternatively set the user of your webserver to your own user. This is NOT recommended for your production system!
In order to keep the quality of the app higher there are options to automatically check your files for styling issues and other code smells:
make phplint
to show andmake phplint-fix
to automatically fix some php issuesmake stylelint
to show andmake stylelint-fix
to automatically fix some css, scss or vue issuesmake lint
to show andmake lint-fix
to automatically fix some javascript issues
You need to at least use charset utf8mb4
(or similar) in your database, because the fetched communitites contain the 🔒
-emoji in their name. Otherwise this causes mysql (or similar) to show a question mark ?
instead. This bug only causes visual issues.