You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 864 B

7 years ago
7 years ago
5 years ago
5 years ago
5 years ago
7 years ago
5 years ago
5 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # transfer.sh-web
  2. This repository contains the web frontend for [transfer.sh](https://github.com/dutchcoders/transfer.sh/).
  3. ## How to use it
  4. You must specify `web-path` directory, pointing to `dist` generated folder (Grunt & bindata)
  5. Sample :
  6. ```
  7. docker run -d -v /folder:/uploads -v /folder/dist:/webapp --publish 5000:8080 dutchcoders/transfer.sh:latest --provider local --basedir /uploads --web-path /webapp/
  8. ```
  9. ## Requirement
  10. You must install first :
  11. * Grunt
  12. * Bower
  13. * Go & go-bindata (go get -u github.com/shuLhan/go-bindata/...)
  14. ## Initialization
  15. NPM
  16. ```
  17. npm install
  18. ```
  19. Bower
  20. *Please*, specify to Bower where to install its packets via .bowerrc, to the `src/bower_components` directory
  21. ```
  22. bower install
  23. ```
  24. ## Build
  25. ```
  26. $ grunt build
  27. $ go generate .
  28. ```
  29. ## Verify
  30. You should see a `dist` directory, where all the basic .html are generated.