Giter Club home page Giter Club logo

umap_ynh's Introduction

UMap for Yunohost

Latest Version Status Dependencies GitHub license Yunohost version GitHub issues

UMap c'est quoi ?

UMap vous permet de créer des cartes avec des couches OpenStreetMap en une minute et de les intégrer dans votre site. Parce que nous pensons que plus d'OSM sera utilisé, plus OSM sera "guéri". Il utilise django-leaflet-storage et Leaflet.Storage, construit sur le dessus de Django et Leaflet.

Source: UMap

Installation

$ sudo yunohost app install https://github.com/YunoHost-Apps/umap_ynh.git

Mise à jour

$ sudo yunohost app upgrade --verbose umap -u https://github.com/YunoHost-Apps/umap_ynh.git

What is UMap?

uMap lets you create maps with OpenStreetMap layers in a minute and embed them in your site. Because we think that the more OSM will be used, the more OSM will be ''cured''. It uses django-leaflet-storage and Leaflet.Storage, built on top of Django and Leaflet.

Source: UMap

Install

$ sudo yunohost app install https://github.com/YunoHost-Apps/umap_ynh.git

Update

$ sudo yunohost app upgrade --verbose umap -u https://github.com/YunoHost-Apps/umap_ynh.git

TODO

  • Add language
  • Create scripts remove/upgrade/restore
  • Use helper ynh_substitute_char
  • Add token Github + Bitbucket + Twitter + OSM
  • Fix CI
  • Fix restore

umap_ynh's People

Contributors

decentral1se avatar frju365 avatar madtibo avatar magikcypress avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

umap_ynh's Issues

I've installed it from source (to test) on a rpi and I've an error (https://framacloud.org/cultiver-son-jardin/installation-de-umap/)

-- Subject: L'unité (unit) uwsgi.service a commencé à démarrer
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- L'unité (unit) uwsgi.service a commencé à démarrer.
avril 07 00:03:28 yunohost.local uwsgi[25358]: Starting app server(s): uwsgi -> . ! failed!
avril 07 00:03:28 yunohost.local systemd[1]: uwsgi.service: control process exited, code=exited status=1
avril 07 00:03:28 yunohost.local systemd[1]: Failed to start LSB: Start/stop uWSGI server instance(s).
-- Subject: L'unité (unit) uwsgi.service a échoué
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- L'unité (unit) uwsgi.service a échoué, avec le résultat failed.
avril 07 00:03:28 yunohost.local systemd[1]: Unit uwsgi.service entered failed state.

notworking?

Hello together, thank you for working on a umap package for yunohost. What can I do to bringt this project to a working status? I am no help in packaging, but I love and use umap very often and would love to run it on my productive yunohost instance. What can I do besides strongly encouriging you?

uMap 1.0

Hi!

Just discovered this repository, that's really cool!

FYI, uMap 1.0 is on its way, see https://github.com/umap-project/umap/blob/master/docs/changelog.md#100rc-1

Two warnings about this:

  • python 2 support has been dropped (because of the upgrade to Django 2.x)
  • DB migrations has been reset (because of the merge of django-leaflet-storage inside uMap)

Let me know if I can do anything on uMap side to make your life simpler!

Missing postgres password in local.py

During the install, we setup a local.py to specify settings for Django.

However, we're missing a password for that. I get the following:

  File "/var/www/umap/venv/lib/python3.5/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
    utility.execute()
  File "/var/www/umap/venv/lib/python3.5/site-packages/django/core/management/__init__.py", line 375, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/var/www/umap/venv/lib/python3.5/site-packages/django/core/management/base.py", line 323, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/var/www/umap/venv/lib/python3.5/site-packages/django/core/management/base.py", line 364, in execute
    output = self.handle(*args, **options)
  File "/var/www/umap/venv/lib/python3.5/site-packages/django/core/management/base.py", line 83, in wrapped
    res = handle_func(*args, **kwargs)
  File "/var/www/umap/venv/lib/python3.5/site-packages/django/core/management/commands/migrate.py", line 85, in handle
    connection.prepare_database()
  File "/var/www/umap/venv/lib/python3.5/site-packages/django/contrib/gis/db/backends/postgis/base.py", line 25, in prepare_database
    with self.cursor() as cursor:
  File "/var/www/umap/venv/lib/python3.5/site-packages/django/db/backends/base/base.py", line 256, in cursor
    return self._cursor()
  File "/var/www/umap/venv/lib/python3.5/site-packages/django/db/backends/base/base.py", line 233, in _cursor
    self.ensure_connection()
  File "/var/www/umap/venv/lib/python3.5/site-packages/django/db/backends/base/base.py", line 217, in ensure_connection
    self.connect()
  File "/var/www/umap/venv/lib/python3.5/site-packages/django/db/utils.py", line 89, in __exit__
    raise dj_exc_value.with_traceback(traceback) from exc_value
  File "/var/www/umap/venv/lib/python3.5/site-packages/django/db/backends/base/base.py", line 217, in ensure_connection
    self.connect()
  File "/var/www/umap/venv/lib/python3.5/site-packages/django/db/backends/base/base.py", line 195, in connect
    self.connection = self.get_new_connection(conn_params)
  File "/var/www/umap/venv/lib/python3.5/site-packages/django/db/backends/postgresql/base.py", line 178, in get_new_connection
    connection = Database.connect(**conn_params)
  File "/var/www/umap/venv/lib/python3.5/site-packages/psycopg2/__init__.py", line 126, in connect
    conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
django.db.utils.OperationalError: fe_sendauth: no password supplied

After the failure, I have the following in my local.py:

DATABASES = {
    'default': { ... }
}

Where only ENGINE and NAME are specified.

I suppose we need to add PASSWORD there too?

And which one? I am not clear on where that password is generated. Is it the one in /etc/yunohost/psql or is another one generated? Also, I am not sure which helper to use, since there is nothing to "replace" because PASSWORD is not given in the template.

Hope that makes sense! Nearly there with getting this nice application back into a working shape. Thanks for the work so far.

Ouverture des droits

C'est possible de m'ouvrir les droits sur cette app pour que je pousse un peu de code ?

Merci

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.