+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/website/src/setup.md b/src/server/admin/ui/panel/accounts.html
similarity index 100%
rename from website/src/setup.md
rename to src/server/admin/ui/panel/accounts.html
diff --git a/src/server/admin/ui/panel/entrycontrol.html b/src/server/admin/ui/panel/entrycontrol.html
new file mode 100644
index 0000000..e69de29
diff --git a/src/server/admin/ui/panel/events.html b/src/server/admin/ui/panel/events.html
new file mode 100644
index 0000000..e69de29
diff --git a/src/server/admin/ui/panel/financial.html b/src/server/admin/ui/panel/financial.html
new file mode 100644
index 0000000..e69de29
diff --git a/src/server/admin/ui/panel/home.html b/src/server/admin/ui/panel/home.html
new file mode 100644
index 0000000..9f69a84
--- /dev/null
+++ b/src/server/admin/ui/panel/home.html
@@ -0,0 +1,3 @@
+
+ Hello World!
+
\ No newline at end of file
diff --git a/src/server/admin/ui/panel/landingpage.html b/src/server/admin/ui/panel/landingpage.html
new file mode 100644
index 0000000..e69de29
diff --git a/src/server/admin/ui/panel/otherpages.html b/src/server/admin/ui/panel/otherpages.html
new file mode 100644
index 0000000..e69de29
diff --git a/src/server/admin/ui/panel/pages.html b/src/server/admin/ui/panel/pages.html
new file mode 100644
index 0000000..e69de29
diff --git a/src/server/admin/ui/panel/printtickets.html b/src/server/admin/ui/panel/printtickets.html
new file mode 100644
index 0000000..e69de29
diff --git a/src/server/admin/ui/panel/settings.html b/src/server/admin/ui/panel/settings.html
new file mode 100644
index 0000000..e69de29
diff --git a/src/server/admin/ui/panel/tos.html b/src/server/admin/ui/panel/tos.html
new file mode 100644
index 0000000..e69de29
diff --git a/src/server/admin/ui/setup.html b/src/server/admin/ui/setup.html
index 93ef562..aac1f01 100644
--- a/src/server/admin/ui/setup.html
+++ b/src/server/admin/ui/setup.html
@@ -107,7 +107,6 @@
-
diff --git a/src/server/app.js b/src/server/app.js
index 63fee43..9582450 100644
--- a/src/server/app.js
+++ b/src/server/app.js
@@ -16,12 +16,13 @@ const bodyParser = require( 'body-parser' );
const cookieParser = require( 'cookie-parser' );
const favicon = require( 'serve-favicon' );
const http = require( 'http' );
+const serveStatic = require( 'serve-static' );
// const env = process.env.PROD || false;
const root = process.env.ROOT || '/order';
-const settings = fs.readFileSync( path.join( __dirname + '/config.json' ) );
+const settings = JSON.parse( fs.readFileSync( path.join( __dirname + '/config.json' ) ) );
// initialise express with middlewares
@@ -35,6 +36,7 @@ app.use( bodyParser.urlencoded( { extended: false } ) );
app.use( bodyParser.json() );
app.use( cookieParser() );
app.use( favicon( path.join( __dirname + '/ui/assets/logo.png' ) ) );
+app.use( serveStatic( __dirname + '/admin/ui/modules' ) );
require( './admin/routes.js' )( app, settings ); // admin route
diff --git a/src/server/config.json b/src/server/config.json
index baf095c..bc8c0b4 100644
--- a/src/server/config.json
+++ b/src/server/config.json
@@ -1,3 +1,3 @@
{
- "init":false
+ "init":true
}
\ No newline at end of file
diff --git a/src/server/package-lock.json b/src/server/package-lock.json
index 7657d14..376c212 100644
--- a/src/server/package-lock.json
+++ b/src/server/package-lock.json
@@ -14,7 +14,8 @@
"cookie-parser": "^1.4.6",
"express": "^4.18.2",
"express-session": "^1.17.3",
- "serve-favicon": "^2.5.0"
+ "serve-favicon": "^2.5.0",
+ "serve-static": "^1.15.0"
},
"devDependencies": {
"acorn": "^8.8.2",
diff --git a/src/server/package.json b/src/server/package.json
index 2e2b078..d86eacf 100644
--- a/src/server/package.json
+++ b/src/server/package.json
@@ -46,7 +46,8 @@
"cookie-parser": "^1.4.6",
"express": "^4.18.2",
"express-session": "^1.17.3",
- "serve-favicon": "^2.5.0"
+ "serve-favicon": "^2.5.0",
+ "serve-static": "^1.15.0"
},
"scripts": {
"test": "test.js"
diff --git a/website/src/how-it-works.md b/website/src/how-it-works.md
index 1030a1a..1fa7f46 100644
--- a/website/src/how-it-works.md
+++ b/website/src/how-it-works.md
@@ -1,2 +1,2 @@
# How it works
-This page gives you a somewhat detailed overview on how the system operates. Note that this page is not made with user-legibility in mind, as this page is oriented to give possible contributors an introduction to the project to help them getting started.
\ No newline at end of file
+This page gives you a somewhat detailed overview on how the system operates. Note that this page is not made with user-legibility in mind, as this page is oriented to give possible contributors an introduction to the project to help them getting started. Therefore we expect you to have quite decent understanding of the underlying programming languages and concepts.
\ No newline at end of file
diff --git a/website/src/setup/setup.md b/website/src/setup/setup.md
new file mode 100644
index 0000000..aed2e69
--- /dev/null
+++ b/website/src/setup/setup.md
@@ -0,0 +1,35 @@
+# Setup of myevent
+At this point we assume you've completed the initial install of myevent. If not, you may find a guide on how to do it [here](/setup/getting-started). Let's get started setting up your event management system!
+
+## Connecting to the server
+As discussed in the previous part where we installed the system, you can connect to your server simply by opening a web browser and typing your domain name into the address field. After that you should be greeted by the myevent post-install landing page. Please click onto the button saying 'To the admin panel' and log in with the following credentials:
+
+Username: setup
+
+Password: myevent-setup
+
+*Note: This is only available during the setup process of myevent and will afterwards be deactivated to ensure safety of the system.*
+
+## Setting up the root account
+This is the most powerful account in this system. From it you can control EVERY aspect of your system.
+
+**Remark: You may (and definitely should) add other accounts with less privileges after completing setup and only use the root account when it is actually necessary**
+
+Please choose an email address to which you want to link the root account. Two-Factor-Authentication is ALWAYS required when logging into an account that has root privileges to ensure a higher degree of security, so please ensure you have access to that email address at all times.
+
+When choosing a password, please ensure it meets the minimum requirements of the system or let the system generate one for you by clicking the 'generate password' button, which will generate a password that fulfills all requirements and exceeds the minimum requirements for password length. In the table below, you may see all the password requirements:
+
+Factor | Requirement
+--------------------|--------------------------------------------------
+Length | At least 15 characters
+Special characters | At least 2 required
+Numbers | At least 2 required
+Upper / Lower case | At least 2 upper & 2 lower case letters required
+
+Please avoid using easy to guess combinations like names & birth dates of you or your relatives, zip codes & cities and obvious words like 'password', 'myevent', 'admin', 'root' and your organisation / event's name.
+
+## Page setup
+After having set up the root account and confirmed the email address, it is now time to set the name of the webpage. For this, you'll need to enter your organisation's name and choose the offered languages. Note that for every language you select, you need to add a promotional text if you choose to add a homepage. If you selected a homepage, you have to insert a promotional text and you have to select a homepage-template from one that is available [here](/homepage/templates). You also have to upload some images at this stage.
+
+## Payment methods
+Now it is time to set up some payment methods. You may find advantages / disadvantages of each payment gateway [here](/payments). It is advised to only choose one payment gateway which provides lots of different payment options, but cost of usage can also be a factor to consider. You may add more payment options by downloading a plugin through the plugin installer in the admin panel.
\ No newline at end of file