- Create a new Dropbox app (or go to an existing one) and copy the "App key"
- Add your app key and copy following snippet into the
<head>
tag of your index.html file:
<script type="text/javascript" src="https://www.dropbox.com/static/api/2/dropins.js" id="dropboxjs" data-app-key="your_app_key"></script>
- In your app settings page, add "localhost" to the Chooser/Saver domain whitelist
- Go to your app settings page and copy the access token
- Create a new file named "config.json" and add your access token (please do something safer in production):
{
"DROPBOX_ACCESS_TOKEN": "your_access_token"
}
- Install node modules
npm install
- Run server with
node server
- Go to https://localhost:8000