- Update the UI
- host frontend & backend both on heroku
This web app using NODEJS for backend & REACT for frontend. Main goal is to store files in google drive folder & show them for download or open directly in a browser.
- Go to Google Drive API v3 for Nodejs
- Enable drive api as (use desktop app option)
- now run the code snippet with node in your environment to get the refresh token.
- set the environment variables for 'CREDENTIALS' & 'TOKEN'
-
Create a folder in drive and share it as a public.
-
Folder structure will be as follows:
|_main-folder-in-drive-root
|_Folder-1 | |_Folder-1 | |_Folder-1 | |_files-to-view-or-download1 | |_files-to-view-or-download2 |_Folder-2 |_Folder-1 |_Folder-1 |_files-to-view-or-download1
- Start backend by
nodemon server.js
- Start frontend by
cd FRONTEND
npm start