The frontserver of the private RC-Network
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Go to file
Julius Riegel 7642a57c37 Changes in testing config
- removed atrifact and result storage because they don't exist
- renamed dependency install
- changed loglevel
6 years ago
.circleci Changes in testing config 6 years ago
config Statuscodes and Cleanups 6 years ago
glob Statuscodes and Cleanups 6 years ago
lib Merge branch 'develop' of https://github.com/trivernis/rcn-frontserver into develop 6 years ago
res Additional Code-Cleanup 6 years ago
.gitignore Code-Cleanup 6 years ago
LICENSE Restored Content 6 years ago
README.md Added File Watcher 6 years ago
package.json Statuscodes and Cleanups 6 years ago
server.js Code cleanup and comments 6 years ago

README.md

rcn-frontserver

About

This is the front-web-server of the Raspberry pi Communication network.

Modules

NodeJS

  • winston
  • pkg
  • perfy
  • jsdom
  • winston-daily-rotate-file
  • args-parser
  • node-sass

Embedded in the html-file

  • JQuery
  • Vue.js

Details

This web server uses folders for every type of file (depending on the file's ending) and routes to the folders. There are also global files, that are implemented in every html via dom-manipulation. The behaviour for every file extension can be configured in the config.json This server uses vue.js and jquery to make the website as interactive, as possible. This server works with https. To run it. it needs to have access to the folder .ssh in the same directory where a valid cert.pem and a valid key.pem is are existing. Specific directories can be mounted via the mounting parameter. The pattern is:

{
  "mounts": [
    {
      "mount": "mountpath",
      "path": "path"
    }
  ]
}

You can embed sass files as link elements in html-pages. The sass files will be preprocessed to css before send to clients. The result will also be cached and the sass file will be watched for changes. If changes occur, the file will be preprocessed anew on the next request to the file. If not, the cached file will be send. HTML-files will also be cached because they are also manipulated by the preprocessor. All cached files are watched for changes. I.e. if changes to the file are detected the caching function isCached returns false.

Roadmap

Done

  • SASS-Files and caching of preprocessed files ToDo
  • Mounting of folders or files on other locations (by using the config.json)
  • a package.json because it seems to be important nowadays