A Kit Starter project using Microsoft Graph with Next.js
- Visual Studio Code
- Microsoft Teams
- Microsoft 365 Developer Program
- Microsoft Graph
- Node.Js 16.x
- Next.Js
- First go to the folder:
demo-01 -> authentication-app
and run the command:
npm install
- Now create a file called:
.env.local
(in the root of the project) and include this information below:
AZURE_AD_CLIENT_ID=<copy Application (client) ID here>
AZURE_AD_CLIENT_SECRET=<copy generated client secret value here>
AZURE_AD_TENANT_ID=<copy the tenant id here>
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET=
if you're Linux user and want to generate a NEXTAUTH_SECRET: `openssl rand -hex 32` or go to https://generate-secret.now.sh/32
- Now you can execute the command:
npm run dev
- Now you can access the application in the browser:
http://localhost:3000
- ✅ Free Courses - Microsoft Graph
- ✅ Microsoft Graph Fundalmentals
- ✅ Access a user's calendar events in a JavaScript app with Microsoft Graph
- ✅ Show a user's emails in a JavaScript app with Microsoft Graph
- ✅ Download and upload files in a JavaScript app with Microsoft Graph
- ✅ Access user photo information by using Microsoft Graph
- ✅ Configure a JavaScript application to retrieve Microsoft 365 data by using Microsoft Graph
- ✅ Build apps with Microsoft Graph – Associate
- ✅ Microsoft Graph Documentation
- ✅ Graph Explorer
- ✅ Microsoft Graph JavaScript SDK
If you have any questions about the code developed, feel free to open an ISSUE HERE. We'll get back to you soon!