RHHR 1.0.1
RHHR Framework
License: MIT
Requires Python: >=3.7

# RHHR
RHHR Framework

## Installation Procedure

``` bash
$ python3 -m venv venv --prompt rhhr
$ source venv/bin/activate
``` 

``` bash
(rhhr) $ flask rhhr init --help
Usage: flask rhhr init [OPTIONS]

  Create the initial env files to run RHHR in production

Options:
  -t, --testing      Config for testing purposes
  -d, --development  Config for development purposes
  --help             Show this message and exit.

(rhhr) $ flask rhhr init -d
Write to `dev_rhhr.conf`
Write to `.env`
Write to `.flaskenv`
```

You don't need to edit the files `.env` and `.flaskenv`, but it is absolutely necessary to review the file `dev_rhhr.conf`.

``` bash
(rhhr) $ flask run
 * Serving Flask app "rhhr" (lazy loading)
 * Environment: development
 * Debug mode: on
[2020-12-02 13:55:13,289] INFO in __init__: Initialized RHHR Auth...
[2020-12-02 13:55:13,652] INFO in __init__: Initialized RHHR Error...
[2020-12-02 13:55:13,658] INFO in __init__: Initialized RHHR Basis...
[2020-12-02 13:55:13,735] INFO in __init__: Initialized RHHR Main...
[2020-12-02 13:55:13,741] INFO in __init__: Initialized RHHR Batch...
[2020-12-02 13:55:13,748] INFO in __init__: Initialized RHHR Report...
[2020-12-02 13:55:13,800] INFO in __init__: Initialized RHHR Admin...
[2020-12-02 13:55:13,804] INFO in __init__: Initialized RHHR Theme...
[2020-12-02 13:55:13,805] INFO in __init__: Initialized RHHR...
```

Now open http://localhost:5000 and you will be greeted with the login view.

To be able to log in you need to:

``` bash
(rhhr) $ flask db init
Creating directory /home/xx/rhhr/migrations ...  done
  Creating directory /home/xx/rhhr/migrations/versions ...  done
  Generating /home/xx/rhhr/migrations/script.py.mako ...  done
  Generating /home/xx/rhhr/migrations/env.py ...  done
  Generating /home/xx/rhhr/migrations/alembic.ini ...  done
  Generating /home/xx/rhhr/migrations/README ...  done
  Please edit configuration/connection/logging settings in '/home/xx/rhhr/migrations/alembic.ini' before proceeding.
(rhhr) $ flask db migrate
INFO  [alembic.runtime.migration] Context impl SQLiteImpl.
INFO  [alembic.runtime.migration] Will assume non-transactional DDL.
INFO  [alembic.autogenerate.compare] Detected added table 'auth_permissions'
INFO  [alembic.autogenerate.compare] Detected added table 'auth_roles'
INFO  [alembic.autogenerate.compare] Detected added table 'auth_users'
INFO  [alembic.autogenerate.compare] Detected added index 'ix_auth_users_email' on '['email']'
INFO  [alembic.autogenerate.compare] Detected added index 'ix_auth_users_token' on '['token']'
INFO  [alembic.autogenerate.compare] Detected added table 'auth_role_permissions'
INFO  [alembic.autogenerate.compare] Detected added table 'auth_user_preferences'
INFO  [alembic.autogenerate.compare] Detected added table 'auth_user_roles'
INFO  [alembic.autogenerate.compare] Detected added table 'main_messages'
  Generating /home/xx/rhhr/migrations/versions/2fb0907305b9_.py ...  done
(rhhr) $ flask db upgrade
INFO  [alembic.runtime.migration] Context impl SQLiteImpl.
INFO  [alembic.runtime.migration] Will assume non-transactional DDL.
INFO  [alembic.runtime.migration] Running upgrade  -> 2fb0907305b9, empty message
(rhhr) $ flask auth create-ddic
Creating user DDIC...
Created user DDIC.
(rhhr) $ flask run
```

Now you will be able to register with username __`ddic`__ and password __`RHHR`__.