med/README.md

83 lines
2.0 KiB
Markdown
Raw Normal View History

2019-08-02 11:17:36 +00:00
# Site de la Mediatek
2019-08-02 11:24:26 +00:00
[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0.txt)
[![pipeline status](https://gitlab.crans.org/mediatek/med/badges/master/pipeline.svg)](https://gitlab.crans.org/mediatek/med/commits/master)
[![coverage report](https://gitlab.crans.org/mediatek/med/badges/master/coverage.svg)](https://gitlab.crans.org/mediatek/med/commits/master)
2019-08-02 11:17:36 +00:00
Le projet Med permet la gestion de la base de donnée de la médiathèque de l'ENS Paris-Saclay.
Elle permet de gérer les medias, bd, jeux, emprunts, ainsi que les adhérents de la med.
2019-08-02 11:17:36 +00:00
## Licence
2019-08-10 06:04:46 +00:00
Ce projet est sous la licence GNU public license v3.0.
2017-07-03 23:53:23 +00:00
2019-08-02 11:17:36 +00:00
## Développement
2019-08-02 11:17:36 +00:00
Après avoir installé un environnement Django,
2019-08-02 11:17:36 +00:00
```bash
./manage.py migrate
./manage.py collectstatic
./manage.py runserver
```
2019-08-02 11:17:36 +00:00
## Configuration d'une base MySQL
2019-08-02 11:17:36 +00:00
Sur le serveur mysql ou postgresl, il est nécessaire de créer une base de donnée med,
ainsi qu'un user med et un mot de passe associé.
Voici les étapes à éxecuter pour mysql :
2019-08-02 11:17:36 +00:00
```SQL
CREATE DATABASE club-med;
CREATE USER 'club-med'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON club-med.* TO 'club-med'@'localhost';
FLUSH PRIVILEGES;
```
2019-08-09 06:28:57 +00:00
## Exemple de groupes de droits
```
bureau
2019-08-10 08:44:17 +00:00
Can view borrowed item
2019-08-09 06:28:57 +00:00
Can add borrowed item
Can change borrowed item
Can delete borrowed item
2019-08-10 08:44:17 +00:00
Can view adhesion
2019-08-09 06:28:57 +00:00
Can add adhesion
Can change adhesion
Can delete adhesion
2019-08-10 08:44:17 +00:00
Can view clef
2019-08-09 06:28:57 +00:00
Can add clef
Can change clef
Can delete clef
2019-08-10 08:44:17 +00:00
Can view user
2019-08-09 06:28:57 +00:00
Can add user
Can change user
keyholder
2019-08-10 08:44:17 +00:00
Can view auteur
2019-08-09 06:28:57 +00:00
Can add auteur
Can change auteur
Can delete auteur
2019-08-10 08:44:17 +00:00
Can view media
2019-08-09 06:28:57 +00:00
Can add media
Can change media
Can delete media
2019-08-10 08:44:17 +00:00
Can view jeu
2019-08-09 06:28:57 +00:00
Can add jeu
Can change jeu
Can delete jeu
2019-08-10 08:44:17 +00:00
Can view emprunt
2019-08-09 06:28:57 +00:00
Can add emprunt
Can change emprunt
Can delete emprunt
2019-08-10 08:44:17 +00:00
Can view user
Can view clef
users
Can view auteur
Can view media
Can view jeu
2019-08-09 06:28:57 +00:00
```