Download files with a boiler plate server using a REST Api.
[GET] /hello/{name}
returnHello <name>
message[GET] /list
return the list of the downloaded files[PUT] /download
download a file[DELETE] /delete
delete file(s)
Start with the next chapiter if it is your first intall and if node.js is not installed.
> git clone https://github.com/Starli0n/BoilerPlateDownloader boilerplatedownloader
> cd boilerplatedownloader
> composer install
> npm install
> bower install
> gulp :publish
> gulp :deploy
> gulp :test
> gulp :doc
For PHP Tools for Visual Studio
BoilerPlateDownloader.phpproj > Properties > Application > Start action
Specific page
public/index.html
Specific page
publish/index.html
Specific page
boilerplatedownloader/public/index.html
- Install Node.js
> npm install -g npm
> npm install -g bower
> npm install -g gulp-cli
On Windows npm
should be found here:
C:\Users\Starli0n\AppData\Roaming\npm
For npm
> npm config set analytics false
> npm config set proxy http://user:[email protected]:port
> npm config set https-proxy http://user:[email protected]:port
In your Home
directory, on Windows it is C:\Users\Starli0n
, you should have
.npmrc
analytics=false
proxy=http://user:[email protected]:port
https-proxy=http://user:[email protected]:port
For bower
Set the file manually at the same location
.bowerrc
{
"analytics": false,
"proxy": "http://user:[email protected]:port",
"https-proxy": "http://user:[email protected]:port"
}
Powered by Slim Framework 3 Skeleton Application