Go to file
Filoji 8a5b21f35b Supprimer 'Need.txt' 2020-06-29 14:41:49 +02:00
app Add selector field to Admin's Upload Page 2020-06-29 14:01:25 +02:00
Pycloud.py Transférer les fichiers vers '' 2020-06-23 16:13:35 +02:00
README.md Mise à jour de 'README.md' 2020-06-29 14:23:24 +02:00
config.py Pour changer de PC 2020-06-27 12:34:40 +02:00

README.md

Pycloud

How to install your 'Pycloud' with development environment:

  • Install python3 (need python3 in PATH) and virtualenv (pip3 install virtualenv).
  • 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 python-dotenv, flask, flask-wtf, flask-sqlalchemy, flask-migrate, flask-login ).
  • Paste 'Pycloud' project on the directory.
  • Create a '.flaskenv' file and write in it:
FLASK_APP=Pycloud.py
FLASK_ENV=development
SECRET_KEY='key'

(And change the secret key value)

  • Initialize your Data Base (flask db init)
  • Initialize tables of your data base (flask db migrate -m "users table", flask db upgrade, flask db migrate -m "file table", flask db upgrade)
  • Create an admin account (python3 or python, from app.database import *, u = User(username = 'Admin', isAdmin = True), u.set_password('Pass'), db.session.add(u), db.session.commit())
  • Start Pycloud (flask run).
  • Go on 127.0.0.1:5000/
  • Enjoy!