Giter Site home page Giter Site logo

erik-donath / bootprozess-website Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 2.98 MB

Eine Website, die den Bootprozess erläutert und ein Quiz hat.

Home Page: https://github.com/Erik-Donath/Bootprozess-Website

License: MIT License

HTML 51.71% CSS 12.81% Python 33.58% Batchfile 1.54% Dockerfile 0.35%
app bootprocess css flask flask-bcrypt flask-sqlalchemy flask-wtf flask-wtforms html jinja2 linux markdown python python-3 web-app windows

bootprozess-website's Introduction

Bootprozess-Website

Aufbau

Diese Website ist in Flask unter Python geschrieben worden. Sie enthält:

  • Eine Startseite
  • Impressum und Quellen
  • Bootprozess
    • Windows
    • Linux
    • MacOS
  • Quiz mit Leaderboard (Account benötigt)
  • Account System - Registrierung, Login, Logout, View, Delete

Architektur

Die App befindet sich als Python Packet unter 'app/'. Alle HTML Templates befinden sich unter 'app/templates/' und alle verwendeten js, css und andere Ressourcen befinden sich unter 'app/static/'. Die 'app/__ init __.py' ist für die Initialisierung von Flask und seinen Komponenten zuständig. Unter 'app/database.py' werden alle Datenbank relevanten Systeme deklariert und ggf. initalisiert. 'app/user.py' ist zuständig für alle Nutzer funktionen. Die Dateien 'app/quiz.py', 'app/main.py' und 'app/account.py' definieren die jeweiligen Endpunkte der Website und fügen ggf. eigene Funktionalität hinzu. Unter 'instance/App.db' befindet sich die Datenbank. Diese enthält die Table 'Users' und 'Contacts'.

Ausführen

Unter dem Verzeichnis 'Scripts/' befinden sich Windows skripts zum Ausführen und installieren des Servers. ('Scripts/Install.bat', 'Scripts/Run.bat') Achtung: Install.bat installiert Python und die relevanten Softwarepakete als virtuelle Umgebung unter 'venv/'. Folgende wege exsistieren um die Anwendung auszuführen:
Der einfachste Weg ist es, die 'Scripts/Run.bat' Datei auszuführen.
Ein weiterer Weg ist das Ausführen unter Docker per 'docker-compose.yml'

Datenbank Einträge

  • Users → Table für alle Nutzer
    • id → Id des Nutzers. (Primitiv Key, unique)
    • name → Name des Nutzers. (unique)
    • pwhash → Der Password Hash des Nutzer (Salted, Papered, 128byte)
    • icon → Nutzer Profile (int)
    • score → Der Quiz Score (int)
  • Contacts → Table für die Kontaktanfragen
    • id → Id der Anfrage. (Primitiv Key, unique)
    • firstname → Vorname des Absenders. (string 15)
    • lastname → Nachname des Absenders. (string 15)
    • subject → Nachricht des Absenders. (string 500)

Hinweis zur Verwendung

Diese Seite wurde für ein benotetes Schulprojekt erstellt und ist keinesfalls in der reellen Produktion zu verwenden. Alle Daten im Impressum und Copyright sind reine Show. Dieses Projekt steht unter der MIT License.

bootprozess-website's People

Contributors

erik-donath avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.