You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-9Lines changed: 2 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,19 +8,11 @@ In this lab you will create a React single-page application, configured with Azu
8
8
9
9
-[React Microsoft Graph tutorial](https://docs.microsoft.com/graph/training/react-tutorial)
10
10
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)
Copy file name to clipboardExpand all lines: demo/README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
5
5
To run the completed project in this folder, you need the following:
6
6
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.)
8
8
- Either a personal Microsoft account with a mailbox on Outlook.com, or a Microsoft work or school account.
9
9
10
10
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
40
40
41
41
## Configure the sample
42
42
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.
45
45
1. Replace `YOUR_APP_ID_HERE` with the **Application Id** you got from the App Registration Portal.
46
46
1. In your command-line interface (CLI), navigate to the `graph-tutorial` directory and run the following command to install requirements.
Copy file name to clipboardExpand all lines: demo/graph-tutorial/README.md
+5-29Lines changed: 5 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,20 +4,20 @@ This project was bootstrapped with [Create React App](https://github.com/faceboo
4
4
5
5
In the project directory, you can run:
6
6
7
-
### `npm start`
7
+
### `yarn start`
8
8
9
9
Runs the app in the development mode.<br />
10
10
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
11
11
12
12
The page will reload if you make edits.<br />
13
13
You will also see any lint errors in the console.
14
14
15
-
### `npm test`
15
+
### `yarn test`
16
16
17
17
Launches the test runner in the interactive watch mode.<br />
18
18
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
19
19
20
-
### `npm run build`
20
+
### `yarn build`
21
21
22
22
Builds the app for production to the `build` folder.<br />
23
23
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!
27
27
28
28
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
29
29
30
-
### `npm run eject`
30
+
### `yarn eject`
31
31
32
32
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
33
33
34
34
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.
35
35
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.
37
37
38
38
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.
39
39
@@ -42,27 +42,3 @@ You don’t have to ever use `eject`. The curated feature set is suitable for sm
42
42
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
43
43
44
44
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