LehrGrapht is a simple math plotter Word add-in targeting teachers using the FunkFix macro, that is not available with macOS anymore.
There are two ways to develop the add-in:
- Develop without Word integration (e.g., to update how plots are rendered, etc.).
- Develop with Word integration.
Please read the following sections depending on your needs.
If you're not developing on the Word integration, you can run the add-in in the web.
There's nothing special you need to do, just run npm start and you're good to go!
If you're developing on the Word integration, you need to run the add-in in Word. Word requires SSL to load the add-in.
Microsoft provides a way to generate a certificate using office-addin-dev-certs.
Run npx office-addin-dev-certs install --machine to install the office add-in dev certificates.
Then, create a file .env.local (you can just copy .env and rename it) and change the following variables:
LEHRGRAPHT_SSL: Set totrueto enable SSL.LEHRGRAPHT_SSL_KEY: Set to the path of your SSL key file provided byoffice-addin-dev-certs.LEHRGRAPHT_SSL_CERT: Set to the path of your SSL certificate file provided byoffice-addin-dev-certs.
Now, you run npm start to start the development server.
Make sure, it binds to https on port 4200.
Finally, you can run npm run start:office.
This will open Word and load the add-in.
When you're done, run npm run stop:office.
You can start the development server for the website with npm run start:website.
There's an environment variable LEHRGRAPHT_WEBSITE_GITHUB_TOKEN.
You don't need to provide a value for it.
If it's set with the correct permissions it will grab a list of issues from GitHub and displays it as a roadmap.