]> git.immae.eu Git - perso/Immae/Projets/Nodejs/Surfer.git/blame - README.md
Make listen port and ldap filter more flexible
[perso/Immae/Projets/Nodejs/Surfer.git] / README.md
CommitLineData
d56e255f
GR
1# Surfer
2
98e34a58
JZ
3Surfer is a Simple static file server.
4It comes with a commandline tool to upload files from your local folders and a webinterface to manage files directly on the server.
d56e255f
GR
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
98e34a58 18### Cloudron
d56e255f
GR
19The app package can be built using the [Cloudron command line tooling](https://cloudron.io/references/cli.html).
20
21```
aba27b9e 22git clone https://git.cloudron.io/cloudron/surfer.git
d56e255f 23cd surfer
d56e255f
GR
24cloudron build
25cloudron install
26```
27
98e34a58
JZ
28### Standalone
29Surfer can also be run standlone on any server:
30```
aba27b9e 31git clone https://git.cloudron.io/cloudron/surfer.git
98e34a58
JZ
32cd surfer
33npm install
f8c3136f 34./server.js <public folder>
98e34a58 35```
f8c3136f 36Use the `admin` tool to manage local users.
d56e255f 37
98e34a58 38## File management
d56e255f 39
98e34a58 40The admin interface is available under the `/_admin` location or you can upload files using the commandline tool.
d56e255f 41
98e34a58
JZ
42First, install the surfer cli tool using npm.
43```
44npm -g install cloudron-surfer
45```
d56e255f
GR
46
47Login using your Cloudron credentials:
98e34a58
JZ
48```
49surfer login <this app's url>
50```
d56e255f
GR
51
52Put some files:
98e34a58
JZ
53```
54surfer put [file]
55```
d56e255f 56
ebd7ed7a
GR
57## Testing
58
59The 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.
60
61```
755569a3 62cd surfer
ebd7ed7a
GR
63
64npm install
755569a3 65USERNAME=<cloudron username> PASSWORD=<cloudron password> mocha --bail test/test.js
ebd7ed7a 66```