|
2 | 2 | Setup Scripts for clients to download.
|
3 | 3 | 
|
4 | 4 |
|
5 |
| -## Requirenments |
| 5 | +## Requirements |
| 6 | + |
| 7 | +### Operating Systems |
| 8 | +Currently, we support only Unix-like operating systems like [Ubuntu](https://ubuntu.com). MacOs is still on our roadmap. |
| 9 | +For windows systems you could use [wsl](https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux) to set that up read more [here](https://docs.microsoft.com/en-us/windows/wsl/install-win10). |
| 10 | + |
| 11 | +### Dependencies |
| 12 | +One of the of goals of FileFighter is, that the client, that's you, only needs to met only one single dependency. |
| 13 | +You need **Docker**. |
| 14 | +Docker is a way to organise and run multiple applications. You can imagine it like a virtual machine (technical it`s a bit different), with a small file- and operating system within your machine. |
| 15 | +Sounds more scary than it actually is. Different Applications run in different containers, these only contain the necessary software to run the application. |
| 16 | +The containers use the resources of the host machine, depending on the load. |
| 17 | +Advantages are security and the possibility to easily shutdown and update the services. See more under [Usage](#Usage). |
| 18 | + |
| 19 | +#### Docker |
| 20 | +First check whether you have Docker already installed. |
| 21 | +To do that run: |
| 22 | +```shell script |
| 23 | +docker -v |
| 24 | +``` |
| 25 | +If you see something like that (your version might be different): |
| 26 | +```shell script |
| 27 | +Docker version 19.03.13, build 4484c46d9f |
| 28 | +``` |
| 29 | +You are good to go, and you can skip to [Usage](#Usage). |
| 30 | + |
| 31 | +To install **Docker** on Unix you can either use [snap](https://www.howtogeek.com/660193/how-to-work-with-snap-packages-on-linux/) or [apt](https://en.wikipedia.org/wiki/APT_(software)) as a package manager. |
| 32 | +With snap its easier but of course it's not always possible to use snap. |
| 33 | + |
| 34 | +##### Install with Snap |
| 35 | +To install Docker with [snap](https://www.howtogeek.com/660193/how-to-work-with-snap-packages-on-linux/) you can run: |
| 36 | +```shell script |
| 37 | +sudo snap install docker |
| 38 | +``` |
| 39 | +##### Install with Apt |
| 40 | +Installing with [apt](https://en.wikipedia.org/wiki/APT_(software)) is a bit more difficult you can read [here](https://www.digitalocean.com/community/tutorials/how-to-install-and-use-Docker-on-ubuntu-20-04) more about it. |
6 | 41 |
|
7 | 42 | ## Usage
|
| 43 | +After successfully installing Docker you can start using FileFighter. |
| 44 | +Just download this repository as a zipfile [here](https://github.com/FileFighter/ClientSetup/releases/). |
| 45 | +This repository contains one <!-- three --> important script: |
| 46 | +The [initial start](./init_setup.sh) script starts downloading all the services and starts them in different containers. Run it with |
| 47 | +```shell script |
| 48 | +./init_setup |
| 49 | +``` |
| 50 | +After starting the script you should see something like the following: |
| 51 | +```shell script |
| 52 | +-------------------------< FileFighter >-------------------------- |
| 53 | +| Version 1.0 Last updated at 14.10.20 | |
| 54 | +| Developed by Gimleux, Valentin, Open-Schnick. | |
| 55 | +| Development Blog: https://filefighter.github.io | |
| 56 | +| The code can be found at: https://www.github.com/filefighter | |
| 57 | +--------------------< Started Initial Setup >--------------------- |
| 58 | +``` |
| 59 | +After the script succeeds you should be able to see the FileFighter application in your browser. |
| 60 | +Depending on your configuration file (see below), you should see the application after running the script [here](http://localhost:80/). |
| 61 | +You should see a login page. For the first setup you can use the credentials |
| 62 | +`username=admin password=admin` |
| 63 | +To be sure everything is setup correctly click [here](http://localhost:80/health). If everything is green you are good to go. |
| 64 | + |
| 65 | +### Configuration |
| 66 | +The script uses a [config.cfg](./config.cfg) file that stores information in `key=value` format. |
| 67 | +Valid keys to configure how FileFighter behaves are listed here: |
| 68 | + |
| 69 | +| Key | Possible Values | Default | Description | |
| 70 | +| :----: | :----: | :----: | :----: | |
| 71 | +| rest_port | 0-65535 | 8080 | The port of the restapi service that will be published for the frontend. | |
| 72 | +| frontend_port | 0-65535 | 80 | The port of the webapp (frontend) service. You can visit the FileFighter application over this port. | |
| 73 | +| db_user | any string | root | The name of the Database running in the background. | |
| 74 | +| db_password | any string | none (see below) | The password of the database. (The database won't be exposed to the internet, but passwords never hurt.) | |
| 75 | +| db_port | 0-65535 | 27017 | The port of the database. | |
| 76 | +| db_name | any string | filefighter | The name of the database. | |
| 77 | +| use_stable_versions | true / false | true | When set to true the latest stable versions will be used. When set to false always the latest (possible unstable) versions will be used. | |
| 78 | + |
| 79 | +All of these keys use the [default values](./lib/config.cfg.defaults) if you don't overwrite those values. |
| 80 | +It is also possible to have an empty [config.cfg](./config.cfg) file as the default values will be used. |
| 81 | +If the `db_password` key is empty, a random password will be generated. |
| 82 | + |
| 83 | +Be carefully as the developers of FileFighter won't take responsibility when you are using the application or configuration options wrong or in a not intended way. |
| 84 | + |
| 85 | +## Remaining Files |
| 86 | +All the remaining not explicitly explained files are important for the scripts to work. |
8 | 87 |
|
9 | 88 | ## Help
|
| 89 | +For further help, feedback or questions write us an [email ](mailto:[email protected]). |
0 commit comments