Skip to content

Commit 98a3890

Browse files
authored
Merge pull request #37 from microsoftgraph/refresh-tutorial
Refresh tutorial
2 parents ccbd448 + b913f56 commit 98a3890

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+16468
-33931
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,5 @@ typings/
6464
.vscode/
6565

6666
Config.js
67+
Config.ts
6768
ReactQuickStart.zip

README.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,11 @@ In this lab you will create a React single-page application, configured with Azu
88

99
- [React Microsoft Graph tutorial](https://docs.microsoft.com/graph/training/react-tutorial)
1010

11-
## Demos
12-
13-
The [demos](./demos) directory in this repository contains copies of the project that correspond to completing individual sections of the tutorial. If you just want to demo a particular section of the tutorial, you can start with the version from the previous section.
14-
15-
- [01-create-app](demos/01-create-app): Completed [Create a React single-page app](https://docs.microsoft.com/graph/training/react-tutorial?tutorial-step=1)
16-
- [02-add-aad-auth](demos/02-add-aad-auth): Completed [Add Azure AD authentication](https://docs.microsoft.com/graph/training/react-tutorial?tutorial-step=3)
17-
- [03-add-msgraph](demos/03-add-msgraph): Completed [Get calendar data](https://docs.microsoft.com/graph/training/react-tutorial?tutorial-step=4)
18-
1911
## Completed sample
2012

2113
If you just want the completed sample generated by following this lab, you can find it here.
2214

23-
- [Completed project](demos/03-add-msgraph)
15+
- [Completed project](demo)
2416

2517
## Watch the Module
2618

@@ -39,6 +31,7 @@ This module has been recorded and is available in the Office Development YouTube
3931

4032
| Version | Date | Comments |
4133
| ------- | ---------------- | ---------------------------------- |
34+
| 1.8 | March 19, 2020 | Refresh tutorial |
4235
| 1.7 | December 3, 2019 | Update to latest Graph SDK and `create-react-app` |
4336
| 1.6 | June 18, 2019 | Added link to screencast recording |
4437
| 1.5 | May 24, 2019 | 2019Q4 content refresh |
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

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

7-
- [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 10.15.3. The steps in this guide may work with other versions, but that has not been tested.)
7+
- [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.16.1. The steps in this guide may work with other versions, but that has not been tested.)
88
- Either a personal Microsoft account with a mailbox on Outlook.com, or a Microsoft work or school account.
99

1010
If you don't have a Microsoft account, there are a couple of options to get a free account:
@@ -40,8 +40,8 @@ If you don't have a Microsoft account, there are a couple of options to get a fr
4040

4141
## Configure the sample
4242

43-
1. Rename the `./graph-tutorial/src/Config.js.example` file to `./graph-tutorial/src/Config.js`.
44-
1. Edit the `./graph-tutorial/src/Config.js` file and make the following changes.
43+
1. Rename the `./graph-tutorial/src/Config.ts.example` file to `./graph-tutorial/src/Config.ts`.
44+
1. Edit the `./graph-tutorial/src/Config.ts` file and make the following changes.
4545
1. Replace `YOUR_APP_ID_HERE` with the **Application Id** you got from the App Registration Portal.
4646
1. In your command-line interface (CLI), navigate to the `graph-tutorial` directory and run the following command to install requirements.
4747

File renamed without changes.

demos/01-create-app/graph-tutorial/README.md renamed to demo/graph-tutorial/README.md

Lines changed: 5 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@ This project was bootstrapped with [Create React App](https://github.com/faceboo
44

55
In the project directory, you can run:
66

7-
### `npm start`
7+
### `yarn start`
88

99
Runs the app in the development mode.<br />
1010
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
1111

1212
The page will reload if you make edits.<br />
1313
You will also see any lint errors in the console.
1414

15-
### `npm test`
15+
### `yarn test`
1616

1717
Launches the test runner in the interactive watch mode.<br />
1818
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
1919

20-
### `npm run build`
20+
### `yarn build`
2121

2222
Builds the app for production to the `build` folder.<br />
2323
It correctly bundles React in production mode and optimizes the build for the best performance.
@@ -27,13 +27,13 @@ Your app is ready to be deployed!
2727

2828
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
2929

30-
### `npm run eject`
30+
### `yarn eject`
3131

3232
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
3333

3434
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
3535

36-
Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
36+
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
3737

3838
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
3939

@@ -42,27 +42,3 @@ You don’t have to ever use `eject`. The curated feature set is suitable for sm
4242
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
4343

4444
To learn React, check out the [React documentation](https://reactjs.org/).
45-
46-
### Code Splitting
47-
48-
This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting
49-
50-
### Analyzing the Bundle Size
51-
52-
This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size
53-
54-
### Making a Progressive Web App
55-
56-
This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app
57-
58-
### Advanced Configuration
59-
60-
This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration
61-
62-
### Deployment
63-
64-
This section has moved here: https://facebook.github.io/create-react-app/docs/deployment
65-
66-
### `npm run build` fails to minify
67-
68-
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify

0 commit comments

Comments
 (0)