Skip to content

vbouquet/realtime-keynote-feedback

Repository files navigation

Projet M2 MIAGE

License Build Status Codacy Badge

Auteurs

Valentin Bouquet - https://github.com/vbouquet

Rémy Pocquerusse - https://github.com/Remypoc

Oussemo Oulhaci - https://github.com/ooussem

Technologies

  • Npm: Javascript package manager.

  • Webpack: Javascript module bundler.

  • Babel: Transpiling code for new languages features.

  • React: MVC Framework for dynamic statefull web pages.

  • Redux: State container for Javascript apps.

  • Express: Basic nodejs server (for front-end testing).

  • Django-rest: Framework for building web API.

  • OpenCV: Computer vision and machine learning library.

  • Keras: High-level neural networks API written in Python.

  • Tenserflow: Open source library specialized in machine learning.

Prérequis

Installation

Lancer un terminal en mode administrateur sous windows (pour éviter les problèmes de symlink)

cd ~/{$project}
vagrant up
vagrant ssh

cd $PROJECT_DIR
sudo mount --bind $HOME_DIR/vagrant_node_modules $PROJECT_DIR/node_modules

# Lancez le serveur sur localhost:8080
node src/server/express/main.js &

# Lancez le serveur REST
python3.5 $DJANGO_DIR/manage.py runserver 0.0.0.0:8000 &

#! Attention: Après une analyse il faut supprimer les fichiers vidéos (qui peuvent être volumineux)
#! dans le dossier $DJANGO_DIR/media
rm -r $DJANGO_DIR/media/*

Developpement

  • DJANGO REST

CLI

Vagrant

# Démarrrer la VM
vagrant up

# Eteindre la VM
vagrant halt

# Supprimer la VM
vagrant destroy

# Se connecter en ssh à la VM
vagrant ssh

Front-end

# Lancer webpack avec la configuration pour produire le bundle.js (regroupement des dépendances javascript)

# Option 1
./node_modules/.bin/webpack -d --config webpack-config.js

# Option 2
npm run build

# Option 3, depuis n'importe quel dossier
npm run --prefix /vagrant build

# Lancer webpack pour automatiser la génération à chaque modification
# Attention: problème de synchronisation en dehors de la machine virtuelle

# Option 1
./node_modules/.bin/webpack -d --config webpack-config.js --watch

# Option 2
npm run watch

Server REST

# Lancer le serveur Django depuis l'host
vagrant ssh -c "/usr/bin/python3.5 -u $DJANGO_DIR/manage.py runserver 0.0.0.0:8000"

# Lancer le serveur Django depuis la machine virtuelle
vagrant ssh
python3.5 $DJANGO_DIR/manage.py runserver 0.0.0.0:8000

# Lancer les migrations depuis l'host
vagrant ssh -c "/usr/bin/python3.5 -u $DJANGO_DIR/manage.py makemigrations"
vagrant ssh -c "/usr/bin/python3.5 -u $DJANGO_DIR/manage.py migrate"

# Lancer les migrations depuis la machine virtuelle
vagrant ssh
python3.5 $DJANGO_DIR/manage.py makemigrations
python3.5 $DJANGO_DIR/manager.py migrate

Ressources

Anciennes ressources

About

Analyse des retours d'une présentation à partir de la vidéo et de l'audio

Resources

License

Stars

Watchers

Forks

Packages

No packages published