]> git.immae.eu Git - perso/Immae/Projets/Nodejs/Surfer.git/blame - README.md
Use new base image
[perso/Immae/Projets/Nodejs/Surfer.git] / README.md
CommitLineData
d56e255f
GR
1# Surfer
2
3Surfer is a Simple static file server. It comes with a commandline tool
4to upload files from your local folders.
5
6## Installation
7
8[![Install](https://cloudron.io/img/button32.png)](https://cloudron.io/button.html?app=io.cloudron.surfer)
9
10or using the [Cloudron command line tooling](https://cloudron.io/references/cli.html)
11
12```
13cloudron install --appstore-id io.cloudron.surfer
14```
15
16## Building
17
18The app package can be built using the [Cloudron command line tooling](https://cloudron.io/references/cli.html).
19
20```
21cd surfer
22
23cloudron build
24cloudron install
25```
26
27### How to upload
28
29You can upload files using the commandline tool.
30
31First, install the surfer cli tool using npm.
32
33 sudo npm -g install cloudron-surfer
34
35
36Login using your Cloudron credentials:
37
38 surfer login <this app's url>
39
40
41Put some files:
42
43 surfer put [file]
44
ebd7ed7a
GR
45## Testing
46
47The e2e tests are located in the `test/` folder and require [nodejs](http://nodejs.org/). They are creating a fresh build, install the app on your Cloudron, perform tests, backup, restore and test if the files are still ok.
48
49```
755569a3 50cd surfer
ebd7ed7a
GR
51
52npm install
755569a3 53USERNAME=<cloudron username> PASSWORD=<cloudron password> mocha --bail test/test.js
ebd7ed7a
GR
54```
55