Git Product home page Git Product logo

expertsystem's Introduction

Expert System for IT security risk analysis

TODO

Prerequisites

  • Visual Studio Code for code editing
  • Download Git
  • Install Flask (under virtual env)
    • pip install Flask
  • Installation of Python 3.10.1
  • Create Github repository

Create virtual environment with specific python version

virtualenv --python='C:\Users\AdminUser\AppData\Local\Programs\Python\Python38\python.exe' virenv .\virenv\Scripts\activate pip install -r requirements.txt

To activate vir environment

.\virenv\scripts\Activate deactivate to deactive virtual env

set FLASK_ENV=development

Create database

python from app import db db.create_all() exit()

db.engine.table_names()

from app import Categories from app import db update = Categories(category='Kopijos', description='Saugumo klausimai susiję su atsarginių kopijų sauga.') db.session.add(update) db.session.commit()

update = Categories(category='BDAR', description='Saugumo klausimai susiję su Bendruoju Duomenų Apsaugos Reglamentu.') update = Categories(category='Slaptažodžiai', description='Saugumo klausimai susiję su slaptažodžių sauga.')

Development

Set environment variables $env:FLASK_APP="app" $env:FLASK_ENV="development"

Run across network

flask run --host=0.0.0.0

Questions page sample

image

Results page sample

image

Login page

image

Database editor page

Single table preview image

Populating database

In order to populate database you should follow rules in these tables. image image image

Reference

https://www.youtube.com/watch?v=Z1RJmh_OqeA

https://flask.palletsprojects.com/en/2.0.x/

http://pyke.sourceforge.net/logic_programming/index.html

Self assesment

https://ico.org.uk/for-organisations/sme-web-hub/checklists/data-protection-self-assessment/controllers-checklist/

parsing POST

https://stackoverflow.com/questions/43333440/different-types-of-post-requests-in-the-same-route-in-flask

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.