diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 39cf82842984d546f044382cc0de4bdf5dd66727..906a18aacf75ad873f994ecdacd88eddab976b9a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -33,13 +33,16 @@ pages: dependencies: - testing script: - - mv htmlcov/ public/ + - mkdir .public + - mv htmlcov/ .public/coverage + - mv docs/ .public/docs + - mv .public public artifacts: paths: - public expire_in: 1 month - only: - - master + # only: + # - master tags: - docker diff --git a/.vscode/settings.json b/.vscode/settings.json index e4ae88354acb152c12b5c8440e41652b6e43ca20..d68b49014379fc9547a253e47efa3cd5bd7fe22e 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -9,6 +9,6 @@ "**/__pycache__":true, "**/.pyc":true }, - "cSpell.language": "en", + "cSpell.language": "en,fr-FR,fr", "python.linting.flake8Enabled": true } \ No newline at end of file diff --git a/README.md b/README.md index 42fc95cc5452591acfcfdd5d8c860e12b2e3cd2d..a167bc71e5e9d6efb91157722ff1b8ee7827fe74 100644 --- a/README.md +++ b/README.md @@ -1,36 +1,7 @@ [](https://gitlab.utc.fr/chehabfl/outgoing_rex/pipelines) -[](https://chehabfl.gitlab.utc.fr/outgoing_rex/) +[](https://chehabfl.gitlab.utc.fr/outgoing_rex/coverage/) [](https://opensource.org/licenses/BSD-2-Clause) [](http://outgoing-preprod.herokuapp.com/) -# Site blabla -# Installation -``` -git clone -pip ... -./manage.py migrate -``` - -Chargement des données des pays : - -Avec pip requierements installer -``` -./manage.py shell -``` - -puis à l'intérieur de ce shell -``` -%run ./rex/utils/insert_country.py -``` -To populate universities, also run in `./manage.py shell`: -``` -%run ./rex/utils/insert_universities.py -``` - -Follow this tutorial : https://devcenter.heroku.com/articles/heroku-postgresql#local-setup - -in postgre -ALTER USER username CREATEDB; -GREATE DATABASE florent; -GRANT ALL on DATABASE florent to florent; +## Retrouvez la documentation [ici](https://chehabfl.gitlab.utc.fr/outgoing_rex/docs/) diff --git a/docs/API.md b/docs/API.md new file mode 100644 index 0000000000000000000000000000000000000000..c8b387a4cc0f9f209e14af77af5951252911b5c3 --- /dev/null +++ b/docs/API.md @@ -0,0 +1,4 @@ +API +======== + +Il n'y a rien dans cette section, mais ça va arriver :kissing:. \ No newline at end of file diff --git a/docs/README.md b/docs/README.md new file mode 100644 index 0000000000000000000000000000000000000000..b9aba0ec73300b1e6223e238aea1aae790124c1d --- /dev/null +++ b/docs/README.md @@ -0,0 +1,7 @@ +Présentation +======= + +Bienvenue sur la documentation du projet **`Outgoing`**. Il s'agit d'une plateforme de capitalisation concernant les départs à l'étranger à l'Université de Technologie de Compiègne. + +!> Ce service fonctionne avec `Python 3.6`, `Django 2.0` et `PostgreSQL`. + diff --git a/docs/_sidebar.md b/docs/_sidebar.md new file mode 100644 index 0000000000000000000000000000000000000000..41de147a2e0ed63b57ac8e2fc2cdb5baaa263248 --- /dev/null +++ b/docs/_sidebar.md @@ -0,0 +1,8 @@ + + +* [Présentation](/) +* [Installation](installation.md) +* [Chargement des données](load.md) +* [API](API.md) +* [À propos de cette documentation](this_doc.md) +* [Contributions](contributions.md) \ No newline at end of file diff --git a/docs/contributions.md b/docs/contributions.md new file mode 100644 index 0000000000000000000000000000000000000000..d9010fd31f30e8621797fc3cae7dd41e1c3e521d --- /dev/null +++ b/docs/contributions.md @@ -0,0 +1,4 @@ +Contributeurs et contributrices :thumbsup: +========= + +- Florent Chehab diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 0000000000000000000000000000000000000000..ff6dbe05785854263b8118bc2951c7e3430c7364 --- /dev/null +++ b/docs/index.html @@ -0,0 +1,36 @@ + + + + + +
+ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/docs/installation.md b/docs/installation.md new file mode 100644 index 0000000000000000000000000000000000000000..a77916e5270cb52cef794f67d7d380b825ae4e04 --- /dev/null +++ b/docs/installation.md @@ -0,0 +1,181 @@ +Installation +======= + +## Locale + +Petit guide pour installer proprement cette application `django` et pouvoir contribuer. + + +### postgreSQL + +#### Installation + +L'installation de `postgreSQL` est peut être le plus gros challenge de cette partie. Pour ce faire, utiliser ~~Google~~ DuckDuckGo. + +Vous devez faire en sorte que `postgreSQL` soit accessible en local, c'est suffisant : + +- Dans le fichier `postgresql.conf` (disponible en standard sous linux dans le dossier `/var/lib/pgsql/data/` après installation), décommentez/modifiez les lignes : +```conf +listen_addresses = 'localhost' +port = 5432 +``` +- Dans le fichier `pg_hba.conf` (disponible en standard sous linux dans le dossier `/var/lib/pgsql/data/` après installation), ajoutée la ligne : +```conf +host all all 127.0.0.1/32 trust +``` + +**Penser à relancer `postgreSQL` après ces changements _- et profitez-en pour activer le lancement automatique au démarrage si vous le souhaitez_.** + +**Les contributions sont les bienvenues pour compléter cette partie d'installation/configuration de base.** + + +#### Initialisation + +Pour un fonctionnement simplifié avec ce projet il faut procéder aux changement suivants. + +_Petite commande à faire au début : nous allons avoir besoin de votre nom d'utilisateur._ + +```bash +whoami +``` +C'est par le résultat de cette commande qu'il faudra que vous remplaciez chaque `