Système de commentaire utilisant le webSocket. La persistance des données(demo) n'est que temporaire dû à la base de données sqlite et l'hébergeur Heroku.
Python >= v3.9
https://comment-with-flask-websocket.herokuapp.com/
Cloner le projet
git clone https://github.com/meschac38700/comment-system-with-web-socket-and-flask.git
Deplacez vous dans la branche 'local' si ce n'est pas déjà le cas
git checkout local
Se placer dans le répertoire du projet
cd comment-system-with-web-socket-and-flask
Créer à la racine du projet le fichier database.db
touch database.db
Créer à la racine du projet le fichier settings.py et spécifier les variables listées dans settings.py.example
touch settings.py
Créer l'environnement virtuel
python -m venv {nom_environnement_virtuel}
Activer l'environnement virtuel (Linux, Mac OS)
source {nom_environnement_virtuel}/bin/activate
Activer l'environnement virtuel (Windows)
./{nom_environnement_virtuel}/Scripts/activate.bat
Utiliser le gestionnaire de dépendances pip pour installer les dependances présentes dans le fichier requirements.txt.
pip install -r requirements.txt
Executer la commande suivante pour lancer le serveur:
python main.py
Allez sur: http://127.0.0.1:5000/