summaryrefslogtreecommitdiffstats
path: root/documentation/installation
diff options
context:
space:
mode:
authorJannik Schönartz2019-03-10 04:50:32 +0100
committerJannik Schönartz2019-03-10 04:50:32 +0100
commitdc102d24f0fcb6247388880abc7f3208d0b7a9eb (patch)
treef5c7af2f8cb217488052b71978f45a667d03b363 /documentation/installation
parent[ipxe] Add parameter to api how many lines the response should send and adjus... (diff)
downloadbas-dc102d24f0fcb6247388880abc7f3208d0b7a9eb.tar.gz
bas-dc102d24f0fcb6247388880abc7f3208d0b7a9eb.tar.xz
bas-dc102d24f0fcb6247388880abc7f3208d0b7a9eb.zip
[documentation] Add documentation site
Override css (Design the topbar & site) <-- A lot of Udo's help Create structure for the differen pages Start writing the installation Write the getting started API site Write documentation of the authentication api Write documentation of the setup api
Diffstat (limited to 'documentation/installation')
-rw-r--r--documentation/installation/README.md50
1 files changed, 50 insertions, 0 deletions
diff --git a/documentation/installation/README.md b/documentation/installation/README.md
new file mode 100644
index 0000000..e693871
--- /dev/null
+++ b/documentation/installation/README.md
@@ -0,0 +1,50 @@
+# Installation
+
+
+
+
+## Install needed packages
+```bash
+sudo apt-get install git
+sudo apt-get install curl software-properties-common
+curl -sL https://deb.nodesource.com/setup_10.x | sudo bash -
+sudo apt-get install nodejs
+```
+
+## Install node.js server
+```bash
+git clone http://git.ks.uni-freiburg.de/lsfks/projekte/bas.git
+cd bas/server
+npm install
+```
+
+## Copy certificates
+```bash
+scp privkey.pem user@host:path/privkey.pem
+scp fullchain.pem user@host:path/fullchain.pem
+```
+
+## Setup config files
+```bash
+cd bas/server/config
+cp authentication.template.json authentication.json
+cp database.template.json database.json
+cp config.template.json config.json
+```
+
+## Install webapp
+```bash
+cd bas/webapp
+npm install
+npm run build
+```
+
+## Start the node.js server
+```bash
+cd bas/server
+npm start
+```
+
+## Default Ports
+* Server: 3000
+* tftp: Serverport + 1 (3001)