Backened Server :
- Upload a file
- Get list of all the files
- Download a file
- Update a file
- Delete a file
Server: Node, Express
Database: MongoDB
Clone the project
git clone https://github.com/monster256/webteam-task-3.gitGo to the project directory
cd webteam-task-3Install dependencies
npm installStart the server
nodemon index.js https://web-team-task-3.herokuapp.com/ POST /upload| Parameter | Type | Description |
|---|---|---|
Name |
string |
Required. Name |
fileImage |
file |
Required.File must be selected (Any type of File ex: pdf,jpg,etc..) |
GET /getdetail PUT /download/${id}| Parameter | Type | Description |
|---|---|---|
id |
string |
Required. Id of File to Download |
GET /update/${id}| Parameter | Type | Description |
|---|---|---|
id |
string |
Required. Id of File to Update |
GET /delete/${id}| Parameter | Type | Description |
|---|---|---|
id |
string |
Required. Id of File to Delete |