some instructions for the utilisation/configuration

This commit is contained in:
nobohan 2021-05-26 10:21:16 +02:00
parent 02a8bb9088
commit 382966c846
2 changed files with 840 additions and 8 deletions

View File

@ -10,22 +10,23 @@ L'instance Geonature-Citizen de Champs-Libres.
note: les credentials pour accéder au backend se trouvent dans /home/appuser/citizen/config note: les credentials pour accéder au backend se trouvent dans /home/appuser/citizen/config
## Mise à jour de GeoNature ## Développement
### Mise à jour de GeoNature
Certaines modifications sont faites sur le fork de GeoNature-citizen. Pour télécharger la dernièer version, faire: Certaines modifications sont faites sur le fork de GeoNature-citizen. Pour télécharger la dernièer version, faire:
$ git submodule foreach git pull git@github.com:Champs-Libres/GeoNature-citizen.git champs-libres $ git submodule foreach git pull git@github.com:Champs-Libres/GeoNature-citizen.git champs-libres
## Remise en route du service ### Remise en route du service
$ docker-compose up -d $ docker-compose up -d
$ docker-compose exec citizen sh install/restart.sh $ docker-compose exec citizen sh install/restart.sh
## Documentation ### Documentation
$ make doc $ make doc
## Builder le front (pour production) ### Builder le front (pour production)
``` ```
$ docker-compose exec citizen bash $ docker-compose exec citizen bash
@ -33,16 +34,16 @@ appuser@ab136184159a:~/citizen/$ cd frontend
appuser@ab136184159a:~/citizen/frontend$ npm run ng build -- --configuration=fr --prod appuser@ab136184159a:~/citizen/frontend$ npm run ng build -- --configuration=fr --prod
``` ```
## Modifier la config du front end ### Modifier la config du front end
- faire des modifications dans `patches/frontend/conf` - faire des modifications dans `patches/frontend/conf`
- Builder le front (cfr commande ci-dessus) - Builder le front (cfr commande ci-dessus)
- arrêter le container et remise en route du service (cfr commande ci-desssus) - arrêter le container et remise en route du service (cfr commande ci-desssus)
## Modifier les images (e.g., image de fond) ### Modifier les images (e.g., image de fond)
Certaines images sont servies sur api/media, d'autres dans assets! Certaines images sont servies sur api/media, d'autres dans assets!
### 1) Les images servies sur api/media/ #### 1) Les images servies sur api/media/
- changer les fichiers dans `patches/frontend/src/assets/` - changer les fichiers dans `patches/frontend/src/assets/`
- copier ces fichiers dans le dossier `media`: - copier ces fichiers dans le dossier `media`:
@ -54,8 +55,25 @@ appuser@ab136184159a:~/citizen/$ cp -r frontend/src/assets/* media
- arrêter le container et remise en route du service (cfr commande ci-desssus) - arrêter le container et remise en route du service (cfr commande ci-desssus)
### 2) Les images servies sur assets/ #### 2) Les images servies sur assets/
- changer les fichiers dans `patches/frontend/src/assets/` - changer les fichiers dans `patches/frontend/src/assets/`
- Builder le front (cfr commande ci-dessus) - Builder le front (cfr commande ci-dessus)
- arrêter le container et remise en route du service (cfr commande ci-desssus) - arrêter le container et remise en route du service (cfr commande ci-desssus)
## Utilisation et configuration
- Interface admin: http://localhost:8080/api/admin
- UN: citizen
- PW: voir le password généré à la fin de l'installation!
### Création d'un programme
La création d'un programme n'est pas encore documentée dans la doc officielle. Remplir les formulaires dans l'admin.
Notes:
- Dans zone géographique, il faut rentrer un fichier geojson. Les limites de la commune de wasseiges peuvent être retrouvées via http://overpass-turbo.eu/s/15qX ou dans `fixtures/geojson/`.
### Création d'un utilisateur
La création d'un utilisateur n'est pas encore documentée dans la doc officielle. On peut s'enregistrer sur le site. Néanmoins, sans serveur SMTP, l'envoi de l'email de confirmation ne fonctionne pas. Il faut alors manuellement **activer** l'utilisateur dans l'admin.

View File

@ -0,0 +1,814 @@
{
"type": "FeatureCollection",
"generator": "overpass-ide",
"copyright": "The data included in this document is from www.openstreetmap.org. The data is made available under ODbL.",
"timestamp": "2021-05-19T10:02:46Z",
"features": [
{
"type": "Feature",
"properties": {
"@id": "relation/2363330",
"addr:postcode": "4219",
"admin_level": "8",
"boundary": "administrative",
"name": "Wasseiges",
"name:fr": "Wasseiges",
"name:wa": "Wazedje",
"population": "2964",
"population:date": "2012",
"ref:INS": "64075",
"type": "boundary",
"website": "http://www.wasseiges.be/",
"wikidata": "Q711502",
"wikipedia": "fr:Wasseiges"
},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
5.0154011,
50.6335228
],
[
5.0152375,
50.633506
],
[
5.0151169,
50.6334808
],
[
5.0148658,
50.6334078
],
[
5.0147346,
50.6333913
],
[
5.0144948,
50.6335053
],
[
5.0137114,
50.6339936
],
[
5.0121719,
50.6349939
],
[
5.0111225,
50.6357342
],
[
5.0100368,
50.6367359
],
[
5.009613,
50.637087
],
[
5.0089571,
50.6374506
],
[
5.008626,
50.6376341
],
[
5.0079393,
50.6378695
],
[
5.0071824,
50.638049
],
[
5.0064373,
50.6381213
],
[
5.0061749,
50.6381454
],
[
5.0056484,
50.6381915
],
[
5.0039342,
50.6383126
],
[
5.0031857,
50.6381981
],
[
5.0022979,
50.6379695
],
[
5.0009327,
50.6375517
],
[
4.9994011,
50.6371529
],
[
4.9978919,
50.6368434
],
[
4.99701,
50.6367279
],
[
4.9967487,
50.636716
],
[
4.9960503,
50.636712
],
[
4.9950453,
50.636809
],
[
4.9942513,
50.6369012
],
[
4.9935401,
50.6377724
],
[
4.9929339,
50.6384209
],
[
4.9901311,
50.6414188
],
[
4.9901041,
50.6416306
],
[
4.9899676,
50.6427004
],
[
4.9896591,
50.6435673
],
[
4.9890594,
50.6444197
],
[
4.988169,
50.6454252
],
[
4.9881446,
50.6454528
],
[
4.9874274,
50.6450247
],
[
4.9863331,
50.6446165
],
[
4.9850671,
50.6439634
],
[
4.9843161,
50.643283
],
[
4.9834577,
50.6422625
],
[
4.9877922,
50.6391326
],
[
4.989895,
50.6366966
],
[
4.9883286,
50.6366014
],
[
4.9873845,
50.6364789
],
[
4.9849812,
50.635744
],
[
4.9839727,
50.6354173
],
[
4.9821703,
50.6345599
],
[
4.9878457,
50.6254469
],
[
4.9872654,
50.624923
],
[
4.9840488,
50.6208783
],
[
4.9794305,
50.61848
],
[
4.9818179,
50.6166251
],
[
4.9857723,
50.6159065
],
[
4.9884557,
50.6154573
],
[
4.9897268,
50.6142895
],
[
4.9897268,
50.6141997
],
[
4.9948111,
50.6130318
],
[
5.0010252,
50.6100674
],
[
5.0023536,
50.6075326
],
[
5.00272,
50.6068335
],
[
5.0028612,
50.6067436
],
[
5.0011665,
50.6055759
],
[
5.0000366,
50.605486
],
[
4.9998953,
50.6020724
],
[
4.9991893,
50.5999165
],
[
5.0018726,
50.5984792
],
[
5.0045559,
50.5978503
],
[
5.0045559,
50.5970418
],
[
5.0078043,
50.5959638
],
[
5.0096297,
50.5950707
],
[
5.0133123,
50.5932689
],
[
5.0188203,
50.5907536
],
[
5.0286492,
50.5887025
],
[
5.0293672,
50.5899804
],
[
5.0301037,
50.5924381
],
[
5.0334208,
50.5917454
],
[
5.0340381,
50.5916198
],
[
5.0343373,
50.5914107
],
[
5.0360794,
50.5912285
],
[
5.0377907,
50.591214
],
[
5.0385927,
50.5912177
],
[
5.0388126,
50.5911813
],
[
5.038999,
50.5912026
],
[
5.0395019,
50.5911946
],
[
5.0414371,
50.5910702
],
[
5.0435833,
50.5909142
],
[
5.0449731,
50.5893471
],
[
5.0450331,
50.5892119
],
[
5.0451647,
50.5888822
],
[
5.0461395,
50.5890404
],
[
5.0480744,
50.5893809
],
[
5.0490037,
50.5893741
],
[
5.0498834,
50.5892805
],
[
5.0502968,
50.5891528
],
[
5.0518495,
50.5886215
],
[
5.053592,
50.5880264
],
[
5.0546663,
50.5889328
],
[
5.0520603,
50.5896589
],
[
5.0539036,
50.5919681
],
[
5.0542152,
50.5919658
],
[
5.0544459,
50.5920067
],
[
5.0547134,
50.5919604
],
[
5.0554324,
50.5931546
],
[
5.0550788,
50.5932549
],
[
5.0555449,
50.5936912
],
[
5.0552585,
50.5938588
],
[
5.055288,
50.5938874
],
[
5.0570165,
50.5955122
],
[
5.0597405,
50.5968951
],
[
5.0607234,
50.5971239
],
[
5.0603062,
50.5984822
],
[
5.0595435,
50.599102
],
[
5.0618115,
50.6025079
],
[
5.0611124,
50.6034646
],
[
5.061058,
50.6035178
],
[
5.0597354,
50.6048119
],
[
5.0548629,
50.6075204
],
[
5.0540864,
50.608587
],
[
5.0532596,
50.6097228
],
[
5.0528717,
50.6102557
],
[
5.0526813,
50.6106433
],
[
5.0513887,
50.6132739
],
[
5.0490372,
50.6166561
],
[
5.0489949,
50.6166561
],
[
5.0471094,
50.6215607
],
[
5.0481337,
50.6223574
],
[
5.052481,
50.6257351
],
[
5.0536609,
50.6266544
],
[
5.0547932,
50.6275365
],
[
5.0556869,
50.6282315
],
[
5.0558671,
50.6283716
],
[
5.0560573,
50.6285195
],
[
5.0562626,
50.6286791
],
[
5.056469,
50.6288397
],
[
5.0566213,
50.6289581
],
[
5.0566366,
50.6290428
],
[
5.056738,
50.6296051
],
[
5.0567426,
50.6296315
],
[
5.0563877,
50.6296807
],
[
5.0560956,
50.6297348
],
[
5.05624,
50.6301843
],
[
5.0570026,
50.6300091
],
[
5.0570216,
50.6300599
],
[
5.0572942,
50.6307911
],
[
5.0573204,
50.630858
],
[
5.0549664,
50.6360452
],
[
5.0549477,
50.6360862
],
[
5.054965,
50.6361529
],
[
5.0552443,
50.6372313
],
[
5.0547359,
50.6372987
],
[
5.0551384,
50.6379185
],
[
5.0559646,
50.64029
],
[
5.0560069,
50.6410985
],
[
5.0563035,
50.6421765
],
[
5.046834,
50.6443594
],
[
5.0468123,
50.6443879
],
[
5.0467955,
50.6444099
],
[
5.0467752,
50.6444366
],
[
5.0467565,
50.6444611
],
[
5.0458171,
50.6456934
],
[
5.0397583,
50.6433488
],
[
5.0396938,
50.6433642
],
[
5.0396339,
50.6433785
],
[
5.0394218,
50.6434291
],
[
5.0259316,
50.646486
],
[
5.0226872,
50.6452209
],
[
5.0226572,
50.6451734
],
[
5.0225274,
50.6444436
],
[
5.0221352,
50.6434165
],
[
5.0216896,
50.6421566
],
[
5.0215537,
50.6414408
],
[
5.0213912,
50.6409194
],
[
5.0200587,
50.6397318
],
[
5.0201344,
50.6392382
],
[
5.0197884,
50.6383885
],
[
5.0194091,
50.6376558
],
[
5.0191349,
50.6373359
],
[
5.0182689,
50.6366143
],
[
5.0171576,
50.6358638
],
[
5.0169555,
50.6354596
],
[
5.016537,
50.6346802
],
[
5.0161761,
50.6341462
],
[
5.0154011,
50.6335228
]
]
]
},
"id": "relation/2363330"
},
{
"type": "Feature",
"properties": {
"@id": "node/471626957",
"@relations": [
{
"role": "admin_centre",
"rel": 2363330,
"reltags": {
"addr:postcode": "4219",
"admin_level": "8",
"boundary": "administrative",
"name": "Wasseiges",
"name:fr": "Wasseiges",
"name:wa": "Wazedje",
"population": "2964",
"population:date": "2012",
"ref:INS": "64075",
"type": "boundary",
"website": "http://www.wasseiges.be/",
"wikidata": "Q711502",
"wikipedia": "fr:Wasseiges"
}
}
]
},
"geometry": {
"type": "Point",
"coordinates": [
5.006907,
50.6210088
]
},
"id": "node/471626957"
}
]
}