https://github.com/stdevteam/file_versioning_test
https://github.com/stdevteam/file_versioning_test
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/stdevteam/file_versioning_test
- Owner: stdevteam
- Created: 2021-03-24T08:10:33.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-24T14:59:28.000Z (over 5 years ago)
- Last Synced: 2025-03-13T15:18:13.325Z (over 1 year ago)
- Language: Python
- Size: 127 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
=================
Document control
=================
-----------------
Development setup
-----------------
Install required system packages:
.. code-block:: bash
$ mkdir /var/www/document_control
$ cd /var/www/document_control
$ sudo update-alternatives --config python3
$ python3.6 -m venv venv
$ . venv/bin/activate
$ pip install flask
$ pip install flask-mysqldb
$ set FLASK_APP=main.py
$ set FLASK_DEBUG=1
$ sudo apt install mysql-server
$ sudo mysql_secure_installation
Configure DB
.. code-block:: bash
sudo mysql
>CREATE DATABASE document_control;
>USE document_control;
>CREATE USER 'user'@'localhost' IDENTIFIED BY 'Password123#@!';
>GRANT ALL PRIVILEGES ON *.* TO 'user'@'localhost';
>FLUSH PRIVILEGES;
>source db_sql;
>exit;
Run project
.. code-block:: bash
flask run