Skip to content

g5search/annotation-extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

annotation-extension

Chrome extension for G5's COPS Annotation Service.

Getting Started

These instructions presume you have a working Node.js environment.

See Appendix for one way to get up and running with Node.

  1. Clone this repo in your favorite command line interface.
git clone https://github.com/pcktbot/annotation-extension.git
  1. Install dependencies.
cd annotation-extension
npm i
  1. Run Development Server
npm run watch:dev

# or without hot-reload on background scripting

npm run build:dev
  1. Load Dev Extension in Chrome.
  • Navigate to chrome://extensions/.
  • Enable Developer Mode.
  • Click Load Unpacked and navigate to this repo's dist/ directory.
  • Use 'Inspect Background Page' to view console for background process.

Publish to Chrome Store

TODO: joining developer Google group. Registering with Chrome Store and access to Google Payments (for managed Google accounts).

Contributing

TODO: pull requests, features and feedback, contributers.

We do expect this to have a decent install base for internal teams. This configuration let's you keep the Extension installed and loaded.

  1. Update current branch.
cd annotation-service
git pull
  1. Install additional dependencies.
npm i
  1. Start the Development Server.
npm run watch:dev

Helpful Links

Chrome Extension Getting Started

Vue Extention Boilerplate

Appendix: Node.js on macOS

There are lots of ways to install Node.js on a Mac, but this way works well with our G5's user management. These are command line entries.

  1. Install Homebrew (requires admin privileges).
  2. Use brew to install NVM (Node Version Manager).
brew install nvm
  1. Configure NVM using post-install instructions to create ./nvm home folder and source nvm commands.
mkdir ~/.nvm

# Edit your bash env using nano or vim
nano ~/.bash_profile

# Paste the following in your profile file
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"

# Save ^O, then Exit ^X
# Source your profile file
source ~/.bash_profile
  1. Use NVM to install LTS of Node.js (Must be Node 10 or newer).
nvm install --lts
  1. Return to Getting Started instructions.

About

Chrome extension for G5's COPS Annotation Service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages