Git Product home page Git Product logo

pixelhumain / communecter Goto Github PK

View Code? Open in Web Editor NEW
60.0 36.0 26.0 98.92 MB

Manage cities as a connected citizen (email & postalCode), produce openCityData, manage organizations, projects, events openly , an open societal approach

Home Page: https://www.communecter.org/

License: Apache License 2.0

CSS 0.04% JavaScript 27.56% PHP 71.78% HTML 0.60% Shell 0.02%
citizens societal network citizen-participation

communecter's Introduction

Pixel Humain

Requierement

Php version : 5.4.X (minimum) MongoDB : 2.6.X (tested version - minimum) Mongo Driver : 1.4.5 (tested version - minimum)

##Installation ####Configure your php Verify your php configuration is right done lauching the command line

php --ini

The php.ini specified in the "Loaded Configuration File" option should be the right one. Check in this php.ini file the openssl extension is activated.

####must install a Php webserver Choose your favorite webserver (apache) or package (easyPhp, Wamp...) Edit the httpd.conf file and activate the line

LoadModule rewrite_module modules/mod_rewrite.so

On Unix like OS : Linux Ubuntu, Debian :

Otherwise

On Windows OS :

if (X<5)
 php_mongo-1.4.5-5.X-vc9.dll
else
 php_mongo-1.4.5-5.X-vc11.dll
  • Important : if you'are running with a 64bits platform choose the file with 'x86_64' in it.
  • Copy the dll file in your directory : %php_dir%/ext
  • In the php.ini add (the name of the dll file depends on your php install version) :
for php 5.5
extension=php_mongo-1.4.5-5.5-vc11.dll
or
for php 5.3
extension=php_mongo-1.4.1-5.3-vc9.dll

On Mac

If you are on mac OSX, read this readme first : Specific readme_macOS.md for Mac OSX

####install a mongo Database instance and admin tool

mongod --dbpath data/db
  • inside your favorite mongo administration tool :
  • create a database called pixelhumain
  • create a user for the db : pixelhumain
  • you can do this the simple mongo
  • use pixelhumain
  • db.addUser( "pixelhumain","pixelhumain" )

####Composer installation PixelHumain is set with composer in order to manage dependencies and libraries.

  • Clone the repository in order to recover the files
  • If you don't have it get the composer (https://getcomposer.org/)
  • Create the file /ph/protected/config/dbconfig.php with your database name and URL.
$dbconfig = array(
    'class' => 'mongoYii.EMongoClient',
    'server' => 'mongodb://127.0.0.1:27017/',
    'db' => 'pixelhumain',
);

You can find an example of dbconfig in the file /ph/protected/config/dbconfig.example.php

  • Launch following commands to initiate the application : in cd path/to/pixelhumain/ph where you'll find composer.json
composer update
...
composer install

####Add the module citizenToolKit

To launch the application, you need to install the module citizenToolKit. See below to see how to install modules.

####Launch the application

  • Launch you http webserver

  • depending on how you webservers alias is configured here the alias is called ''ph'' and pointing to the folder you cloned test this url : http://localhost:8080/ph/index.php/test

  • All the first line should be green.

right now you can access the application like 127.0.0.1/ph/index.php/anyModule to remove the index.php you'll need to configure your http.conf like this

Alias "/ph" "pathToProjectFolder/pixelhumain/ph"
<Directory "pathToProjectFolder/pixelhumain/ph">
Options FollowSymLinks Indexes
AllowOverride none
Order deny,allow
Allow from 127.0.0.1
deny from all
<IfModule mod_rewrite.c>
Options +FollowSymLinks
IndexIgnore */*
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|assets|robots\.txt)
RewriteRule ^(.*)$ /ph/index.php/$1 [L]
</IfModule>
</Directory>

####Adding a Module

  • at the same level of the /pixelhumain folder , create a folder called /modules
/pixelhumain
 /ph
 /doc ...
/modules

Init Data Base

Change to the folder modules/communecter/data is run the following commands:

  • mongoimport --db pixelhumain --collection cities cities.json --jsonArray;
  • mongoimport --db pixelhumain --collection lists lists.json --jsonArray ;

YOU SUCCEED ! READY TO CODE NOW !

####Understanding the structure and Yii Now you can follow urls to understand and dive into the code, which is a fairly standard and simple MVC ex : 127.0.0.1/ph/communecter/person/profile

  • "communecter" is the module
  • "person" is the controller file called PersonController.php
  • "profile" is the action foun called actionProfile found in the above controller file

Valuing States Structure

  • page region : List all Counties with minimal descritption
  • city page : List local actors(directory), local Places
  • people page :

##Roadmap short term

  • add a person/citizen
  • add and Association, Company
  • add a State entity (city, county...)

##Document before coding Make a good habit of writing a doc or a doc corrected before embarking in the code. This avoids a tedious task of writing a doc after hit.

##More info






Help keep this project alive

contribute or Join the NGO on Hello Asso

##Version 0.002 L'homme qui déplace une montagne commence par déplacer les petites pierres.- Confucius Man who wants to move a mountain starts by moving pebbles

communecter's People

Contributors

aboire avatar chil45 avatar childee avatar clement59 avatar frankytecher avatar jeremyloreau avatar johnsonrobert avatar kgneo avatar lucbonnin avatar manoloph avatar oceatoon avatar pierremagnin avatar raphaelriviere avatar sylvainbarbot avatar

Stargazers

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

Watchers

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

communecter's Issues

pré-remplissage

Dans le menu "Hey" il y a un champ pré-rempli au-dessus de la case à cocher 'public'. En cliquant dans le champs un choix se déroule. Il y a une coquille sur le mot Agriculture.
Pareil en dessous de la case à cocher 'Public'

News : ajout

lors de l'ajout d'une news via le bouton "ajouter" ... on a page d'ajout et dans le bloc de saisi du texte il y a "describe your organization"... + il serait bien d'avoir un éditeur wysiwyg

2015-08-21_0639

My City : impossible d'accéder

quand j'essaye d'aller sur My City je tombe sur une page avec ce message : CException ErrorController ne peut trouver la vue « dashboard ».

ajouter un event sur un projet

il me semble qu'on ne l'a pas encore fait
et c'est qlq chose de rapide et simple a connecter
et listé avec un pod dans le projet

coquille

Il y a une coquille sur le mot "Cylce", dans la rubrique Public des Organisations

dashboard : mur d'actualités ?

Est il prévu d'avoir un mur d'actualité sur le Dashboard ? Une façon de voir l'ensemble de "actualités"/ mouvement de mon réseau

Tags

Dans Dashboard / Account Info / Tags : l'infobulle ne propose pas de choix.

Mes évènements : ajout médias

Lors de la création d'un évènement il serait vraiment bien de pouvoir ajouter un ou plusieurs médias (photos, vidéos). ce pourrait peut être juste être l'ajout du pod "média" qui se trouve sur les pages organisation

dashboard : account info

ce panel prend bcp de place et comme je me connais j'ai pas forcément envie ou besoin de l'avoir sous le nez ;)

quand je clique sur les tags ... je vois qu'il se passe quelque chose mais ne comprends pas vraiment quoi ....

comment est ajouté le TAG rouge en haut à droite ?

difficile d'ajouter sa date de naissance avec le type de calendrier proposé

Page organisation : Panel Activités

comment ajouter un type d'activités qui n'est pas dans la liste ? Et il serait bien d'armoniser la sémantique entre "Activités" et "intervention"

account info

Dans Dashboard / Account Info / description, j'ai le message "Unknown field :shortDescription"

impossible d'ajouter un projet

2015-08-10_0714
Lors de la création d'un nouveau projet .Il est impossible pour moi de changer le code postal . Du coup impossible de valider la création du projet

Mes évènements - Menu déroulant

Dans le menu déroulant en bas à droite, pas de choix possible (encore). Le but de ce menu n'est pas évident comme cela (nothing selected).

build and add scopes

add scopes form
consider

  • an Organization
  • a codeInsee, country, cp ,
  • a person or a list of people
    as a scope

format .odt

Pour un fichier téléchargé, le format .odt ne s'ouvre pas. Le format .pdf s'ouvre pour le même navigateur. (firefox)

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.