From bdf8c446eaecbb821a13a7bb22b06b3c62983e4a Mon Sep 17 00:00:00 2001 From: Filoji Date: Tue, 23 Jun 2020 16:12:22 +0200 Subject: [PATCH] =?UTF-8?q?Transf=C3=A9rer=20les=20fichiers=20vers=20''?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .flaskenv | 2 ++ Need.txt | 25 +++++++++++++++++++++++++ app.db | Bin 0 -> 20480 bytes config.py | 8 ++++++++ 4 files changed, 35 insertions(+) create mode 100644 .flaskenv create mode 100644 Need.txt create mode 100644 app.db create mode 100644 config.py diff --git a/.flaskenv b/.flaskenv new file mode 100644 index 0000000..65a7429 --- /dev/null +++ b/.flaskenv @@ -0,0 +1,2 @@ +FLASK_APP=Pycloud.py +FLASK_ENV=development \ No newline at end of file diff --git a/Need.txt b/Need.txt new file mode 100644 index 0000000..e7adec5 --- /dev/null +++ b/Need.txt @@ -0,0 +1,25 @@ +Packages: +python3 +virtualenv +on Virtual environment +python-dotenv +flask +flask-wtf +flask-sqlalchemy +flask-migrate + +- - How to install your 'Pycloud' with development environment: +- Install python3 (need python3 in PATH, you can download Python on the Website and check the 'add to PATH') and virtualenv ('pip3 install virtualenv'). +- Make sure you have Python on your PATH (Open a terminal and type 'python', if the version is Python 2.x, try 'python3'). +- Create your cloud directory and enter in it. +- Create a virtual environment ('python -m venv venv' or 'python3 -m venv venv'). +- Set your virtual environment ('virtualenv venv'). +- Activate it (Windows: 'venv\Script\activate', others: 'venv/bin/activate'). +- Download all others packages ('pip3 install package-name'). +- Paste 'Pycloud' project on the directory. +- Create a '.flaskenv' file and write it: +FLASK_APP=Pycloud.py +FLASK_ENV=development +- Initialize your Data Base ('flask db init') +- Start Pycloud ('flask run'). +- You've done! \ No newline at end of file diff --git a/app.db b/app.db new file mode 100644 index 0000000000000000000000000000000000000000..95002017c0ed25232cdf10c2c4d543b862a3a489 GIT binary patch literal 20480 zcmeI%&raJg90%~E1xhQG?1Cz876PdiY-*C`9}?O^7e+@(M=4`HOqKIb4fGFd3Pain zo?$PuN7*xQ*)pp$hzE+ajvHi3CNiR+g_Uqx;C&6&kr(+^>PdJ|EUJ$}@ zT!x*q?7T^7mYKOJuwVX8{$JS)_w4!CyzrBo$$#gByzpgVk7bY`009U<00Izz00bZa z0SG|gzX%-7%oUz4@}I(i=U;>uowLXvC6@v1`*C5m+O*7;MGo!S{-H%`_Dky>nQllL zHi;XPVtkFemM%BbnZn{CfAxM$on8_uuA7;JYnfYhYtko|4LugPWxcYR#BQ{ReORxr zlU(*D7CZt@d_fdqp;=6Ax5z4Mz$pj_Xt;&C^_? zEUA=guI9;(Ay&jd)D^>3bxmB)-wW17~irgcCU literal 0 HcmV?d00001 diff --git a/config.py b/config.py new file mode 100644 index 0000000..ebf3e51 --- /dev/null +++ b/config.py @@ -0,0 +1,8 @@ +import os + +class Config(object): + SECRET_KEY = os.environ.get('SECRET_KEY') or 'you-will-never-guess' + APPLICATION_DIR = os.path.dirname(os.path.realpath(__file__)) + FILES_DIR = os.path.join(APPLICATION_DIR, 'Files') + SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or 'sqlite:///' + os.path.join(APPLICATION_DIR, 'app.db') + SQLALCHEMY_TRACK_MODIFICATIONS = False \ No newline at end of file