An Office Add-in with the magic from OpenAI
Note login page will not show during local development
Please refer to AOAI-for-Word-backend.
- Install winget.
- It probably has already been installed on Windows.
- Start PowerShell and use winget to install Node.js LTS and pnpm.
- It's recommended to start PowerShell on Windows Terminal.
winget install openjs.nodejs.lts pnpm
- [Optional] Add an alias for pnpm in PowerShell's profile.
- If you skip this step, you'll have to use
pnpm-win-x64.exe
in latter steps
Set-Alias -Name pnpm -Value pnpm-win-x64.exe
- If you skip this step, you'll have to use
- Restart PowerShell.
- Clone the repo.
git clone https://github.com/Alan-Kuan/AOAI-for-Word
- Install dependencies.
pnpm install
- Create certificates for development purposes.
npx office-addin-dev-certs install --days <validity period in days>
- Start development server.
pnpm dev
- Sideload the Add-in.
pnpm sideload