GithubHelp home page GithubHelp logo

dclauzel / trouve-moi-un-truc-a-lyon Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 0.0 176 KB

Démonstrateur utilisant les données ouvertes à Lyon

PHP 79.01% JavaScript 4.35% CSS 2.21% HTML 14.43%
php postgis geolocation geospatial opendata lyon api velov

trouve-moi-un-truc-a-lyon's Introduction

Trouve-moi un truc à Lyon

Démonstrateur utilisant les données ouvertes :

  • de JCDecaux, pour les vélos en libre service ;
  • du Grand Lyon, pour les données urbaines.

Le démonstrateur s’appuie sur :

Il existe une instance d’exemple (sur IPv6).

Prérequis

Prérequis côté serveur :

  • serveur web ;
  • php >= 5.4 ;
  • postgis >= 1.5, avec postgresql >= 9.1 (paquet postgresql-9.1-postgis sur Debian).

Prérequis côté client :

  • navigateur web à jour ;
  • avoir activé javascript ;
  • avoir activé la géolocalisation.

Développé avec :

  • apache > 2.2.22 ;
  • php > 5.4.4 ;
  • gdal 1.9.0 ;
  • postgresql > 9.1 et postgis > 1.5 ;
  • chromium > 26.0.1410.43, Firefox > 22.0a2.

Testé avec apache 2.4.29, php 7.0.22, gdal 2.2.2, postgresql 10.0, postgis 2.4.1, chrome 62

Déployer les outils sur son serveur

Pour cloner le démonstrateur, vous DEVEZ renseigner un fichier de configuration « config.php », contenant vos clés des API et les accès à la base de données.

Certains outils utilisent des requêtes sql qui peuvent prendre un certain temps à se terminer. Il est alors possible que les PHP timeout. Si c’est le cas, ajustez les configurations d’apache et de PHP :

  • dans php.ini : max_execution_time = 600
  • dans apache :
    • Timeout 300
    • FcgidProcessLifeTime 7200
    • FcgidIOTimeout 7200
    • FcgidConnectTimeout 600
    • FcgidIdleTimeout 600

Création de base et de l’utilisateur postgresql

sudo su postgres
psql

CREATE USER marmotte WITH PASSWORD 'papier d’alu';
CREATE DATABASE MaTablePourTravaillerAvecLesDonnées;
GRANT ALL PRIVILEGES ON DATABASE MaTablePourTravaillerAvecLesDonnées TO marmotte;

\connect marmotte

CREATE EXTENSION postgis;
CREATE EXTENSION postgis_topology;
CREATE EXTENSION address_standardizer;
CREATE EXTENSION fuzzystrmatch;
CREATE EXTENSION postgis_tiger_geocoder;

Licence

Par Damien Clauzel, @dClauzel, sous licence GPLv3.

trouve-moi-un-truc-a-lyon's People

Contributors

dclauzel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

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.