-
Install Node.js
-
Create .env file in the root directory containing the
HOST_API_URL
keye.g
API_HOST = "https://jabref-online.herokuapp.com"
-
Run
yarn install
- 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.
- 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.
- 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.
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.
- Prettier: Format code and enforces consistent style.
- React.js: UI framework Documentation
- Microsoft Office Add-in