This repo contains the dev version (untested and not stable) of the ProKinO browser's front-end source code (view online). The University of Georgia hosts the main version at https://prokino.uga.edu.
The Protein Kinase Ontology (ProKinO), is a protein kinase-specific ontology, which provides a controlled vocabulary of terms, their hierarchy, and relationships unifying sequence, structure, function, mutation and pathway information on kinases. The conceptual representation of such diverse information in one place enables not only rapid discovery of significant information related to a specific protein kinase, but also enables large scale integrative analysis of the protein kinase family.
Available to download from: https://prokino.uga.edu/downloads
-
Run
node -vto check the version of node. If the version is not 18.12.1, you can install it using the following commands:Using
nvmyou can runnvm install 18.12.1to install the preferred version. To select the version, runnvm use 18.12.1. -
Global packages:
sudo npm install -g gatsby-cli@5.2.0
-
In the project directory and run:
npm installFor the first time, you may get errors related to peer dependencies. To fix this, run the following command, then runnpm installagain:npm config set legacy-peer-deps truenpm install react-html-parser @material-ui/core@4.12.4 --legacy-peer-depsnpm audit fix(It is likely that you will get errors related to npm permissions. To fix this, run the suggested command that is shown on your terminal. Alternatively, you can runsudo chown -R $USER ~/.npmand try again.)
-
npm run develop
NOTE: If there was an error, you can hard reset by deleting the node_modules directory and running the above commands again.
- rm -rf node_modules.
Run local-pulish.sh to produce new-public.zip:
- ./local-publish.sh
You can extract the zip file on the server's website directory.
-
Prerequisites:
- On netlify.com, create a new website.
- When asked for GitHub address, set it to the https://github.com/prokino/nb-gatsby
- Set Build command to:
gatsby build - Set Publish directory to:
public/ - Set the following Environment variables:
- HOST_NAME=netlify
- NODE_ENV=production
- NODE_OPTIONS=--max_old_space_size= 4096
- Follow instructions to enable netlify cli from the official documentation
-
Steps
./local-pulish.sh,./netlify-publish.sh
The code is written in React.js and Gatsby.js. It uses npm as a package manager. The version numbers of the packages are specified in the package.json file. Each package has its own version number as x.y.z where x is the major version, y is the minor version, and z is the patch version.
To update npm packages, it is suggested to follow the steps below:
- Install the npm-check-update package:
npm install -g npm-check-updates - Run
ncu -u -t patchto update the packages to the latest patch version. - If still needed, run
ncu -u -t minorto update the packages to the latest minor version. - If still needed, run
ncu -u -t majorto update the packages to the latest major version. - If still needed, run
ncu -uto update the packages to the latest version, then runnpm install.
NOTES:
- Updating packages to the latest version may cause errors.
- After each of the steps above, run
npm installto install the updated packages. - If there is an error, you can hard reset by running:
rm -rf node_modules.npm install react-html-parser @material-ui/core@4.12.4 --legacy-peer-deps
This work is licensed under a Creative Commons Attribution 4.0 International License.
