项目作者: CASES-LU

项目描述 :
Fit4Privacy is a self-assessment tool by @CASES-LU to help business owners implement a better cybersecurity strategy.
高级语言: Python
项目地址: git://github.com/CASES-LU/fit4privacy.git
创建时间: 2020-11-06T12:54:27Z
项目社区:https://github.com/CASES-LU/fit4privacy

开源协议:GNU Affero General Public License v3.0

下载


Fit4Privacy

Fit4Privacy is a self-assessment tool by CASES
to help business owners implement a better data protection and privacy approach.

Deployment

Requirements

  1. $ sudo apt install gettext postgresql

Set up your Python environment

  1. $ pyenv install 3.9.2 # install Python
  2. $ pyenv global 3.9.2 # make this version default for the whole system
  3. $ pyenv versions # check

Install the application

  1. $ git clone https://github.com/CASES-LU/fit4privacy.git
  2. $ cd fit4privacy/
  3. $ npm install
  4. $ poetry install

Configure and run the application

  1. $ cp csskp/config_dev.py csskp/config_prod.py # configure production settings
  2. $ poetry shell
  3. $ python manage.py collectstatic # copy static files required by Django Admin
  4. $ python manage.py compilemessages # compile the translations
  5. $ python manage.py migrate # need to initialize before create the first user
  6. $ python manage.py createsuperuser --username <username>

Run the application:

  1. $ python manage.py runserver # not for production

For production you can use Gunicorn or mod_wsgi.

Deploy with a Dockerized environment (for development purposes)

  1. $ docker-compose up -d

The server will be listening at http://127.0.0.1:8000.

The login for the Django Admin interface will be admin and the password will
be password.

Upgrading the application

  1. $ cd fit4privacy/
  2. $ git pull origin master
  3. $ poetry run python manage.py migrate
  4. $ poetry run python manage.py compilemessages

If you want to update the translations, you must first run:

  1. $ python manage.py makemessages -a --keep-pot # extract the translations

Then you can use a tool like
poedit to translate the strings and you can compile with
the previously mentioned command.

License

This software is licensed under
GNU Affero General Public License version 3

Copyright (C) 2019-2021 SECURITYMADEIN.LU