The Key Features of the Application
- User can navigate throughout the drive / folder with UI like ususal file managers and view the metadata, ( size, dateModified, etc.,)
- Allows the User to download and upload the contents into the local system with UI. Updated
- User can view the profile(Name and ID) of the owner of the folder that the system rendering.
- Entire Application is fully responsive all kinds of devices (tested).
And it offers the following APIs
- Provides API to get files and folders in a folder( or a specific locaiton)
- Provides API to download the content, i.e,
- If the downloading item is a folder then it suggests to redirect to the actual service provider for full download.
- If the downloading item is a file then it will generate a unique link to directly download the file into the local system.
- All these APIs are testable with API testers like POSTMan client.
This entire application is developed under 36Hours( 1 and Half Day ) which limited the implementation of the Upload only to the API level, if more time is allocated, will implement that feature as well.
Hey!!! its an updated version, now this is application is able to upload the file with UI
- NodeJS
- Express Framework
- JavaScript ( Most of the app UI is dynamically generated JavaScript)
- HTML5
- Request Package to handle GET & POST requests.
The App View Please find the other screenshots in the screenshots directory. Please find the intro video in the same directory(screenshots directory)(don't mind about the recorder watermark!)
These are for understanding purpose only, please check the implementation for deeper knowledge. (config/apis.js)
If no other service is running then
localhost:80
will be presented aslocalhost
which will be used down.
Request URL
http://localhost/api/userinfo
Response
{
"id": "string",
"name": "string"
}
Request URL
http://localhost/api/contents
http://localhost/api/contentsof/:id
Here Id is the identification details ( key ) of accessing folder/directory Response
[
{
"path": "string",
"tags": [
"string"
],
"createdDate": "string",
"size": 0,
"modifiedDate": "string",
"name": "string",
"id": "string",
"directory": true
}
]
Request URL
http://localhost/api/download/:id
Again Id is the key of the file.
Response
{
"cloudElementsLink": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"providerViewLink": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"providerLink":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
Request URL
//for the timebeing the file is addressed statically in the code
http://localhost/api/upload/
//This would be the actual API
http://localhost/api/upload/:uploadPath/:absolutePath/:uploadingName/:actualName
Response
{
"path": "/ArrowBackup/logo.png",
"createdDate": 1545655710140,
"size": 6227,
"parentFolderId": "41A412183AAC9177!386",
"modifiedDate": 1545655710140,
"name": "logo.png",
"id": "41A412183AAC9177!1233",
"directory": false,
"properties": {
"mimeType": "image/png"
}
}
To run the system locally, please follow the commands
This is excluded with the API authentication details of the cloud services provider implemented for security reason. Please reachout to
[email protected]
get more information
- Clone the Repo
git clone [email protected]:NandaKishorJeripothula/DocumentViewer.git
- run the following commands inside the repo
npm install
node server
- navigate to following address in browser
http://localhost:80
Made in ❤️ with NodeJS