Skip to content

Commit

Permalink
Merge pull request #64 from microsoftgraph/refresh
Browse files Browse the repository at this point in the history
Updated dependencies
  • Loading branch information
jasonjoh authored Apr 19, 2021
2 parents 2187ec5 + aeac6d9 commit 9f56d29
Show file tree
Hide file tree
Showing 9 changed files with 125 additions and 139 deletions.
29 changes: 11 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,19 @@ If you just want the completed sample generated by following this lab, you can f

- [Completed project](demo)

## Contributors

| Roles | Author(s) |
| -------------------------- | --------------------------------------------------------------------------------------------- |
| Code / Tutorial / Support | Jason Johnston (Microsoft) [@jasonjoh](//github.com/jasonjoh) |
| Slides | Jeremy Thake (Microsoft) [@jthake-msft](//github.com/jthake-msft) |
| QA | Andrew Connell (Microsoft MVP, Voitanos) [@andrewconnell](//github.com/andrewconnell) |
| QA | Julie Turner (Microsoft MVP, Sympraxis Consulting) [@juliemturner](//github.com/juliemturner) |

## Version history

| Version | Date | Comments |
| ------- | ---------------- | ------------------------------------------------ |
| 1.6 | March 19, 2020 | Refreshed tutorial |
| 1.5 | June 18, 2019 | Updated readme to refreshed screencast recording |
| 1.4 | May 24, 2019 | 2019Q4 content refresh |
| 1.3 | May 17, 2019 | Updated AAD app registration steps |
| 1.2 | March 10, 2019 | 2019Q3 content refresh |
| 1.1 | February 8, 2019 | Added slides |
| 1.0 | 2018 | Published |
| Version | Date | Comments |
| ------- | ----------------- | ------------------------------------------------ |
| 1.8 | April 19, 2021 | Refreshed tutorial |
| 1.7 | November 11, 2020 | Refreshed tutorial |
| 1.6 | March 19, 2020 | Refreshed tutorial |
| 1.5 | June 18, 2019 | Updated readme to refreshed screencast recording |
| 1.4 | May 24, 2019 | 2019Q4 content refresh |
| 1.3 | May 17, 2019 | Updated AAD app registration steps |
| 1.2 | March 10, 2019 | 2019Q3 content refresh |
| 1.1 | February 8, 2019 | Added slides |
| 1.0 | 2018 | Published |

## Disclaimer

Expand Down
2 changes: 1 addition & 1 deletion demo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

To run the completed project in this folder, you need the following:

- [Node.js](https://nodejs.org) installed on your development machine. If you do not have Node.js, visit the previous link for download options. (**Note:** This tutorial was written with Node version 12.6.1. The steps in this guide may work with other versions, but that has not been tested.)
- [Node.js](https://nodejs.org) installed on your development machine. If you do not have Node.js, visit the previous link for download options. (**Note:** This tutorial was written with Node version 14.15.0. The steps in this guide may work with other versions, but that has not been tested.)
- Either a personal Microsoft account with a mailbox on Outlook.com, or a Microsoft work or school account.

If you don't have a Microsoft account, there are a couple of options to get a free account:
Expand Down
8 changes: 5 additions & 3 deletions demo/graph-tutorial/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,12 @@ app.set('view engine', 'hbs');

// <FormatDateSnippet>
var hbs = require('hbs');
var moment = require('moment');
var parseISO = require('date-fns/parseISO');
var formatDate = require('date-fns/format');
// Helper to format date/time sent by Graph
hbs.registerHelper('eventDateTime', function(dateTime){
return moment(dateTime).format('M/D/YY h:mm A');
hbs.registerHelper('eventDateTime', function(dateTime) {
const date = parseISO(dateTime);
return formatDate(date, 'M/d/yy h:mm a');
});
// </FormatDateSnippet>

Expand Down
158 changes: 73 additions & 85 deletions demo/graph-tutorial/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 9 additions & 10 deletions demo/graph-tutorial/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,22 @@
"start": "node ./bin/www"
},
"dependencies": {
"@azure/msal-node": "^1.0.0-beta.0",
"@microsoft/microsoft-graph-client": "^2.1.1",
"@azure/msal-node": "^1.0.2",
"@microsoft/microsoft-graph-client": "^2.2.1",
"connect-flash": "^0.1.1",
"cookie-parser": "~1.4.4",
"debug": "^4.2.0",
"date-fns": "^2.21.1",
"date-fns-tz": "^1.1.4",
"debug": "^4.3.1",
"dotenv": "^8.2.0",
"express": "^4.17.1",
"express-promise-router": "^4.0.1",
"express-promise-router": "^4.1.0",
"express-session": "^1.17.1",
"express-validator": "^6.6.1",
"hbs": "^4.1.1",
"express-validator": "^6.10.0",
"hbs": "^4.1.2",
"http-errors": "^1.8.0",
"isomorphic-fetch": "^3.0.0",
"moment": "^2.29.1",
"moment-timezone": "^0.5.31",
"morgan": "^1.10.0",
"uuid": "^8.3.1",
"windows-iana": "^4.2.1"
"windows-iana": "^5.0.1"
}
}
Loading

0 comments on commit 9f56d29

Please sign in to comment.