This is a file storage server which accepts file using post method and user can retrieve them using get method. Following are the APIs which can be used to upload and downlaod files.
-
UplaodFile: http://localhost:8000/api/uploadfile/{username} Using above request file will be uploaded against the given user name
-
ShowFiles:http://localhost:8000/api/showfiles/{username} All files uploaded against given username will be shown
-
DownlaodFile: http://localhost:8000/api/downloadfile/{filename} A file with the given name will be downlaoded
--------How To install-------------
- clone the project
- open cmd
- cd into cloned directory and run following command in terminal composer install
- start Mysql
- in .env file under FileStorageServer/ change database name to "any name you want" and create that database manually using phpMyAdmin or using Mysql shell Also in .env set the credential of database
- now run following command php artisan migrate
- now start server using command below php artisan serve
- thats all it should be live now