Skip to content

Commit

Permalink
Auth
Browse files Browse the repository at this point in the history
  • Loading branch information
biermapa authored and biermapa committed Sep 20, 2021
1 parent 4602677 commit 79db4c9
Show file tree
Hide file tree
Showing 43 changed files with 4,549 additions and 276 deletions.
15 changes: 15 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Genereal env settings
HTTP_PORT=3231
HTTPS_PORT=3232
IS_TESTING=false
DEV_MODE=true
USE_AUTH=true
SMICS_HOSTNAME=localhost
SMICS_PORT=9787

# Auth provider config variables
AUTH_PROVIDER_URL=
AUTH_REDIRECT_URL=
AUTH_REALM=
AUTH_CLIENT_ID=
AUTH_CLIENT_SECRET=
23 changes: 23 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
module.exports = {
root: true,

env: {
browser: true,
amd: true,
node: true,
es6: true
},

extends: ["eslint:recommended"],

parser: "babel-eslint",

plugins: [],

rules: {
"indent": ["error", 2],
"linebreak-style": ["error", "unix"],
"quotes": ["error", "double"],
"semi": ["error", "never"],
},
}
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ web_modules/

# dotenv environment variables file
.env
.env.test
.env*local

# parcel-bundler cache (https://parceljs.org/)
.cache
Expand Down Expand Up @@ -126,4 +126,4 @@ dist
.pnp.*


# src/server/data_io/type_declarations/generated/*
src/server/data_io/type_declarations/generated/*
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ It consists of
1. a web server built on Node.js ("backend"), which handles connections to the data sources and performs computations on it, and
2. a website ("frontend") served by the same Node.js instance for the actual interaction with the data.

See [Structure of the project](#Structure of the project) for details.
See [Structure of the project](#structure-of-the-project) for details.

(Planned) features of the system:

Expand Down Expand Up @@ -52,10 +52,10 @@ The actual installation of the main parts is quite straightforward, although the

```bash
cd to/change/into/a/new/directory
git clone git@github.com:highmed/SmICSVisualisierung.git
git clone git@gitlab.gcc.informatik.tu-darmstadt.de:highmed/infectioncontrolsystem2.git

# change into the project
cd SmICSVisualisierung
cd infectioncontrolsystem2
npm install
```

Expand All @@ -66,13 +66,13 @@ Now everything should be ready to be built and run:
npm run build
```

To build all parts individually, please have a look at the definition of the `build` command that can be found in `package.json`. Alternatively, details are given in [the section on technical details](#Build process).
To build all parts individually, please have a look at the definition of the `build` command that can be found in `package.json`. Alternatively, details are given in [the section on technical details](#build-process).

**Important**: Afterwards, please follow the instructions in [the foreign libraries documentation](src/server/foreign_libraries/README.md#Installation) to set up the parts written in foreign languages.

## Usage

Before you start the server, please check [the configuration](#Configuration) to set the desired ports. If not changed, sensible defaults will be set. In any way, the starting server will print instructions on how to visit the graphical user interface (GUI) via the browser in a colorful box to the terminal it is started from. You should be able to click the URL that is shown and should be directed to your standard browser.
Before you start the server, please check [the configuration](#configuration) to set the desired ports. If not changed, sensible defaults will be set. In any way, the starting server will print instructions on how to visit the graphical user interface (GUI) via the browser in a colorful box to the terminal it is started from. You should be able to click the URL that is shown and should be directed to your standard browser.

### Starting the Server

Expand Down Expand Up @@ -124,8 +124,8 @@ These commands are defined in the [`package.json`](package.json) file. You can e

| **command** | **description** |
|------------------|-----------------|
| `start` | This starts the webserver. See also [Starting the Server](#Starting the Server). |
| `test` | This runs all tests. See also [Starting the Server](#Starting the Server). |
| `start` | This starts the webserver. See also [Starting the Server](#starting-the-server). |
| `test` | This runs all tests. See also [Starting the Server](#starting-the-server). |

#### Miscellaneous

Expand Down
Loading

0 comments on commit 79db4c9

Please sign in to comment.