Skip to content

Commit 4f78b01

Browse files
authored
Change folder structure of Typescript Examples, and update README to be more general (#1024)
1 parent 7b2a6d1 commit 4f78b01

24 files changed

+31803
-10566
lines changed

examples/javascript/README.md renamed to examples/README.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,25 @@
33
To run the examples in your development environment:
44

55
1. Clone this repo
6-
2. Run `npm install`
7-
3. From this directory, start the development server with
8-
`node server.js`.
6+
2. Run `npm install` and `npm run build`
7+
3. Start the development server with `node server.js`.
98
4. Point your browser to <http://0.0.0.0:8080/>
109

11-
## Code flow example
10+
# Dropbox TypeScript SDK Examples
11+
12+
To run the examples in your development environment:
1213

1314
1. Clone this repo
1415
2. Run `npm install` and `npm run build`
16+
3. Run the example you want (basic, download, team, team-as-user, or upload)
17+
e.g. `node basic`
18+
19+
## Code flow example
20+
21+
1. Clone this repo
22+
2. Run `npm install` and `npm run build` in the root of the repository
1523
3. Create an app in the [App console](https://www.dropbox.com/developers/apps).
16-
4. Set a redirect URI "http://localhost:3000/auth" on the app's page on the [App
17-
console](https://www.dropbox.com/developers/apps).
18-
5. Set app key and secret in `examples/javascript/simple-backend/code_flow_example.js` on lines
19-
17 and 18.
24+
4. Set a redirect URI "http://localhost:3000/auth" on the app's page on the [App console](https://www.dropbox.com/developers/apps).
25+
5. Set app key and secret in `examples/javascript/simple-backend/code_flow_example.js` on lines 17 and 18.
2026
6. Run `node examples/javascript/simple-backend/code_flow_example.js`
2127
7. Point your browser to <http://localhost:3000/>

examples/typescript/README.md

Lines changed: 0 additions & 10 deletions
This file was deleted.

examples/typescript/node/basic.js.map renamed to examples/typescript/basic/basic.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.
File renamed without changes.

examples/typescript/download/download.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.
File renamed without changes.

examples/typescript/node/download.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

examples/typescript/node/team-as-user.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)