source: osmose-frontend/README

Last change on this file was 96698c1, checked in by Jocelyn Jaubert <jocelyn.jaubert@…>, 5 years ago

To generate translations, only 'make mo' is necessary

  • Property mode set to 100644
File size: 2.0 KB
Line 
1Frontend part of Osmose tool
2============================
3
4This is the part of osmose [http://osmose.openstreetmap.fr] that shows errors
5on a map.
6
7
8Dependencies
9------------
10  python >= 2.6 recommended and < 3
11  python-psycopg2 >= 2.4
12  python-matplotlib >= 1.1
13  python-requests >= 2.0
14  python-beaker >= 1.6
15  python-imaging
16  python-polib
17  librsvg2-bin                     # to generate markers with rsvg
18  apache2
19  gettext
20  libapache2-mod-wsgi
21  postgresql-9.1
22  postgresql-contrib-9.1           # for hstore extension
23
24Initialisation
25--------------
26
27 - as postgres user
28  createdb osmose_frontend
29  psql osmose_frontend -c "CREATE EXTENSION hstore"
30  psql osmose_frontend -c "GRANT CREATE ON DATABASE osmose_frontend TO osmose;"
31  psql osmose_frontend -f /usr/share/postgresql/9.1/contrib/postgis-1.5/postgis.sql
32  psql osmose_frontend -f /usr/share/postgresql/9.1/contrib/postgis-1.5/spatial_ref_sys.sql
33
34 - check db parameter into tools/utils.py and as default user
35  (cd po && make mo)                                    # to generate translation files
36  git submodule update --init                           # to get Mustache javascript library
37  psql osmose_frontend -f tools/database/schema.sql     # for postgresql database tables
38
39 - to update all git submodules, which contains javascript libraries
40  git submodule update --init
41
42 - when some errors are in the database, to get translations
43  (cd tools/database/ && ./categ_menu_update.sh && ./item_menu_update.sh)
44
45 - add "tools/cron.sh" to crontab, to run once per day
46
47
48Generation of coverage layer from backend
49-----------------------------------------
50
51 - on a backend repository
52  ./tools/generate-polygons.py  # generate all countries on polygons.openstreetmap.fr
53  ./tools/generate-cover.sh     # generate file osmose-cover-simplified.topojson.pbf
54
55 - on a frontend repository
56  cp ../backend/osmose-cover-simplified.topojson.pbf static/osmose-coverage.topojson.pbf.$(date +"%Y-%m-%d")
57  ln -sf osmose-coverage.topojson.pbf.$(date +"%Y-%m-%d") osmose-coverage.topojson.pbf
Note: See TracBrowser for help on using the repository browser.