Website for managing BEL Nanopubs - based on Aurelia. Requires the OpenBEL API for the backend API/storage.
System Requirements
bash <(curl -s https://raw.githubusercontent.com/OpenBEL/belmgr/master/bin/initial-setup.sh)
to clone and run setup commands (you can also read the script to see what is going to be done or to modify the instructions)cd belmgr/webeditor
, gulp watch
Note: jspm queries GitHub to install semver packages, but GitHub has a rate limit on anonymous API requests. It is advised that you configure jspm with your GitHub credentials in order to avoid problems. You can do this by executing jspm registry config github and following the prompts. If you choose to authorize jspm by an access token instead of giving your password (see GitHub Settings > Personal Access Tokens), public_repo access for the token is required.
config/config.json
file as indicated belowconfig.json
to set the openBELApiUrls
parameter.LogManager.setLevel(LogManager.logLevel.debug);
in the main.js file - change debug to error, info or warningConfiguration - this goes into src/config/config.json when building or /config/config.json when serving the application.
{
"openbelApiUrls": [
{"api": "http://bel2.demo.openbel.org/api", "name": "Demo BEL 2.0 API"},
{"api": "http://bel1.demo.openbel.org/api", "name": "Demo BEL 1.0 API"},
{"api": "http://localhost:9000", "name": "Local Dev OpenBEL API"}
]
}
We use npm link to allow for easier local development of the belmgr-plugin with the webeditor. You can see the npm link commands used in the https://raw.githubusercontent.com/OpenBEL/belmgr/master/bin/initial-setup.sh
file.
Run webeditor locally using from the webeditor directory:
gulp watch
From the root directory of the belmgr code repository (with webeditor and plugin as child directories):
bin/build-webeditor-image.sh
uild-webeditor-image.sh
script to the deploy-webeditor
directory to your website directory for your webserver. server {
listen 0.0.0.0:80;
server_name internal-belmgr.domain.com;
access_log /var/log/nginx/belmgr-access.log main;
error_log /var/log/nginx/belmgr-error.log info;
location / {
alias /opt/belmgr/;
index index.html;
add_header Cache-Control no-cache;
}
}
This plugin provides BEL Mgr BEL Editing functionality (http://openbel.org). You can deploy the entire BEL Nanopub edit form or subcomponents of the edit form via this plugin.
System Requirements
jspm install belmgr-plugin
There are examples of how to use this plugin in this repo in the sample* directories
Assuming that you have permission to push an update. If not, please contact whayes@openbel.org.
Select the semantic portion to update using the npm version
command (e.g. is this a major, minor or patch level update).
npm version {patch minor major}
npm publish