Git Product home page Git Product logo

intranet's Introduction

build status

Intranet étudiant de l'ENSIIE Strasbourg

Liste des fonctionnalités :

  • Gestion des photos/vidéo pour les évènement notamment
  • Partage de cours/correction/sujet
  • Suivis des étudiants à l’étranger
  • Trombinoscope → Page de profil
  • Annuaire des entreprises où les étudiants ont fait leur stage + Avis
  • Renseignement logement colloc, bon plan etc.
  • Ragots !
  • Drink IIt ?

##Contribuer

Note: pour MacOS la procédure d'installation utilise Homebrew, un gestionnaire de package très bien pensé et propre à MacOS (l'équivalent de apt-get sous Ubuntu). Pensez à faire brew update et brew upgrade pour mettre à jour vos packages, avant de commencer l'installation. De la même façon pensez à faire sudo apt-get update sur Debian.

###Installation

Installer ruby:

Il ne suffit pas de faire: (ne faites pas la commande suivante!)

  • MacOS: brew install ruby

  • Debian: sudo apt-get install ruby

En effet il y a un problème de version de Ruby. La plupart des distributions vont télécharger avec ces commandes Ruby 1.8 alors qu'il faut Ruby 2.0. Pour pallier à ce problème il faut installer Ruby avec rbenv, un utilitaire qui gère correctement les versions de Ruby.

  • MacOS: brew install rbenv ruby-build

  • Debian:

cd
git clone git://github.com/sstephenson/rbenv.git .rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL

git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
exec $SHELL

Plus d'informations peuvent être trouvées pour Ubuntu ici.

Il suffit alors d'installer Ruby avec rbenv:

  • MacOS/Debian:
rbenv install 2.1.2
rbenv global 2.1.2
ruby -v

Cloner/forker le repo.

Aller dans le dossier du repo: cd intranet

Installer les dépendances: bundle install

Cela peut prendre un peu de temps.

Si un message d'erreur disant que bundle est inconnu, faire: gem install bundle

###Plugin L'intranet utilise elasticsearch, un plugin utilisé par Foursquare et Github notamment, qui permet d'exploiter des données (recherches, analyses, etc). Vous avez besoin de l'installer pour que l'application fonctionne correctement.

  • MacOS: brew install elasticsearch

  • Debian:

wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.7.deb
sudo dpkg -i elasticsearch-0.90.7.deb

Puis pour le lancer:

  • MacOS: elasticsearch -f -D es.config=/usr/local/opt/elasticsearch/config/elasticsearch.yml

  • Debian: sudo service elasticsearch start

###Base de données Celle utilisée pour l'intranet est MongoDB (NoSQL). Pour l'installer:

  • MacOS: brew install mongodb

  • Debian: sudo apt-get install mongodb-10gen

###Développement Pour lancer le serveur: rails server ou rails s

Par défaut le serveur se lance sur le port 3000. On peut voir le résultat sur http://localhost:3000.

Pour lancer la base de données:

  • MacOS: mongod

  • Debian: sudo start mongodb

intranet's People

Contributors

barodeur avatar bluke avatar gaultier avatar maximeheckel avatar soulou avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.