Checkout the demo here : https://youtu.be/juEI8EW9H-U
First setup an account at netlify.com to host serverless functions
npm install
- Configure developer credentials in src/api/BoxClient.js
npm run build
npm run build:lambda
npm start
- Mock Bank of America website
- Display Box user information
- Display and download pdf's directly from Bank of America
- Drag and drop file upload
- Click to browse file upload
- Upload new file's to Box
- Upload new file version's to Box
- create-react-app
- box-node-sdk
- netlify-lambda
- netlify
- reactstrap
- react-dropzone-uploader
App.js # Renders UI components, makes calls to netlify api
api/ # Server side code (functions) hosted by netlify
├── BoxClient.js # Setups Box SDK client with dev credentials
├── getCurrentUserId.js # Handler Function for getting user name from box
└── uploadFile.js # Handler function for uploading files to box
users.get(userID, options, callback)
folders.getItems(folderID, options, callback)
files.uploadFile(parentFolderID, filename, content, callback)
files.uploadNewFileVersion(fileID, content, callback)
AG Liber