Skip to content

mohit038-zz/JabRef-Word-Addin

 
 

Repository files navigation

JabRef-Word-Addin

Getting started

  • Install Node.js

  • Create .env file in the root directory containing the HOST_API_URL key

    e.g API_HOST = "https://jabref-online.herokuapp.com"

  • Run yarn install

Follow the following steps to start the local web server and install add-in.

To test add-in in Word.

  • Run yarn start in the root directory. This starts the local web server and opens Word with add-in loaded.
  • In Word, open a new document, choose the Home tab, and then choose the Show Taskpane button in the ribbon to open the add-in task pane.

To test add-in in Word on a browser.

  • Open Office on the web. Using the Create option, make a document in Word. In this new document, select Share in the ribbon, select Copy Link, and copy the URL.
  • In the root directory of office project files, open the .env file. Add a "DOCUMENT_URL" key. Paste the URL you copied as the value for the "DOCUMENT_URL" key. For example, DOCUMENT_URL=<URL>
  • In the command line starting at the root directory, run yarn start:web.
  • You will see a second dialog box, asking if you wish to register an Office Add-in manifest from your computer. You should select Yes.
  • Choose the Reference tab, and then click on the JabRef icon to open the add-in task pane.

Screenshot 2021-06-19 at 4 08 31 PM

To sideload Add-in in Office on the web manually

  • Open Office on the web. Open a document in Word. On the Insert tab on the ribbon in the Add-ins section, choose Office Add-ins.
  • On the Office Add-ins dialog, select the MY ADD-INS tab, choose Manage My Add-ins, and then Upload My Add-in.
  • Browse to the add-in manifest file, and then select Upload.
  • Choose the Reference tab, and then click on the JabRef icon to open the add-in task pane.

Commands

Command Description
yarn start To test add-in in Word, run this command in the root directory. This starts the local web server and opens Word with add-in loaded.
yarn start:web To test your add-in in Word on a browser, run this command in the root directory. When you run this command, the local web server will start
yarn build To start server in production.

Note: If you're testing add-in on Mac, run yarn dev-server to start the local web server.

Recommended VS Code Extension

  • Prettier: Format code and enforces consistent style.

Technologies used

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 92.2%
  • JavaScript 4.5%
  • CSS 1.8%
  • HTML 1.5%