Giter Site home page Giter Site logo

uchaguzi's Introduction

Uchaguzi Kenya Election deployment (ARCHIVED, THIS CODEBASE IS NOT MAINTAINED)

The Ushahidi Platform is an open source web application for information collection, vizualisation and interactive mapping. It allows people to collect and share their own stories using various mediums such as SMS, Web Forms, Email or Twitter. For more information about the platform and use cases (case studies) visit: http://www.ushahidi.com

System Requirements

To install the platform on your computer/server, the target system must meet the following requirements:

  • PHP version 5.2.3 or greater
  • MySQL version 5.0 or greater
  • An HTTP Server. Kohana, which Ushahidi is built on, is known to work with the following web servers:
    • Apache 1.3+
    • Apache 2.0+
    • lighttpd
    • Microsoft Internet Information Server (MS IIS)
  • Unicode support in the operating system

Required Extensions

The follwing is a list of PHP extensions that must be installed on your server in order for Ushahidi to run properly:

NOTE: Need to figure out what extensions you already have installed on your server? Here are instructions to do just that: http://jontangerine.com/silo/php/phpinfo/

Optional Server Requirements

To use Ushahidi's "Clean URLS" feature on an Apache Web Server, you will need the mod_rewrite module and the ability to use local .htaccess files.

###Installing mod_rewrite

#####Debian/Ubuntu flavours of Linux

sudo a2enmod rewrite

#####CentOS, OS X and Windows

Make sure the following line is NOT commented in your httpd.conf

LoadModule rewrite_module

###Additional Configuration To check if local .htaccess files are allowed, verify that the "AllowOverride" directive in your Apache config (for the web server directory in which you have installed Ushahidi) has been set to "All" i.e.:

<Directory [your-document-root-directory]>
    ...
    AllowOverride All
    ...
</Directory>

NOTE:

  • Clean URLs means that the URLs of your deployment will not have the 'index.php' prefix
  • You MUST restart your Apache web server after making the changes outlined above

Installation

  • ####Download and extract Ushahidi You can obtain the official release of the software from the download site. Alternatively, you can obtain the release running the latest version of the from GitHub - the files are available in .zip and .tar.gz

    To unzip/extract the archive on a typical Unix/Linux command line:

      tar -xvf Ushahidi_Web-xxxx.tar.gz
    

    or in the case of a zip file:

      unzip Ushahidi_Web-xxxx.zip
    

    This will create a new directory Ushahidi_Web-xxxx containing all the Ushahidi platform files and directories - Move the contents of this directory into a directory within your webserver's document root or your public HTML directory.

  • ####Ensure the following directories are writable (i.e. have their permission values set to 777)

    • application/config
    • application/cache
    • application/logs
    • media/uploads
    • .htaccess

    On Unix/Linux, you can change the permissions as follows:

      cd path-to-webserver-document-root-directory
      chmod -R 777 application/config
      chmod -R 777 application/cache
      chmod -R 777 application/logs
      chmod -R 777 media/uploads
      chmod 777 .htaccess
    

    NOTE: The process of configuring file permissions is different for various operating systems. Here are some helpful links about permissions for the Windows (http://support.microsoft.com/kb/308419) and Unix (http://www.washington.edu/computing/unix/permissions.html) operating systems.

  • ####Create the Ushahidi database Ushahidi stores all its information in a database. You must therefore create this database in order to install Ushahidi. This is done as follows:

      mysqladmin -u 'username' -p create 'databasename'
    

    MySQL will prompt for the password for the database password and then create the initial database files. Next, you must log in and set the database access rights:

      mysql -u 'username' -p
    

    Again, you will be prompted for the 'username' database password. At the MySQL prompt, enter the following command:

      GRANT SELECT, INSERT, DELETE, UPDATE, CREATE, DROP, ALTER, INDEX on database.* 
      TO 'username'@'localhost' IDENTIFIED BY 'password';
    

    Where:

    • 'databasename' is the name of your database
    • 'username@localhost' is the name of your MySQL account
    • 'password' is the password required for that username

    NOTE: Your account must have all the privileges listed above in order to run Ushahidi on your webserver.

  • ####Run the install script To run the install script, point your browser to the base url of your website: (e.g. http://www.example.com).

    You will be guided through a series of screens to set up the database and site settings depending on the installation method you choose (Basic or Advanced)

Additional Information

For further references and documentation, head over to our wiki (http://wiki.ushahidi.com). Also, we encourage you to drop by our forums (http://forums.ushahidi.com/) if you have any additional questions or concerns.

uchaguzi's People

Contributors

aoduor avatar brandonrosage avatar ekala avatar eyedol avatar jepchumba avatar kamaulynder avatar rjmackay avatar rrbaker avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

uchaguzi's Issues

Message type dropdown doesn't work

The type filter on messages doesn't work: admin/messages/index/1

  1. Goto: admin/messages
  2. Select tweets in the message type dropdown

Expected result: messages are filtered to twitter message

Actual result: nothing happens (still shows email messages)

KML Layers not surfaced on frontend

Added a custom KML/KMZ layer, but the layers menu does not exist on the frontend i.e. it isn't surfaced for user to pick a layer to display.

See screenshot

Browser compatibility issues

Category filter on the homepage appears fine on Firefox. See below
screenshot
Doesn't work on chrome and Safari. See below
screenshot-1

Filter Report Box on reports listing page not working

Steps to reproduce:-

  1. Go to reports listing page on frontend
  2. Click on any category checkbox

Expected result

  • Category checkbox should be clickable, and reports filtered should belong to that category only

Actual result

  • Category checkbox is not clickable/is non responsive. Actually the entire filter by category section is non responsive. Errors thrown can be seen below

screenshot

Log out option does not exist

Steps to reproduce:-

  • Log into uchaguzi admin dashboard
  • Click on login/notifications on top right corner of page

Expected result

  • Drop down with the option of logging out

Actual result

  • Nothing happens: No dropdown appears.

The option to log out does not exist anywhere else on the admin dashboard, meaning, once I log in, I can't log out :(

Filter by Report/Media Type failure

Clicking on any of the options(Web, Email, Twitter, SMS for report type OR photos, video, news links ) yields no behaviour. Links seem to be inactive

"Browse Files" on Gallery not working

Go to Gallery
Go to Browse Files section on the right
Select All Reports

Expected Result:
Show all reports

Actual Result:
Reloads the gallery page

The same happens for Popular Reports, Amplified Reports, Recent Reports and Flagged Reports

Partners/Organizations Table

We need a new partners/organizations model to define which users and reports belong to which partner. This is necessary to allow users (and partners) to separate reports by organizations.

incident belongs_to user belongs_to organization ?


Background

  • Partners have multiple trusted reporters who will post reports in via SMS
  • Partners have users who log in to the backend to edit/approve reports
  • Each reporter has a fixed location / lat,lon
  • Reports need to be associated with the partner who submitted them

Requirements

  • Reports can be filtered by partner on the frontend (/reports)
  • Reports can be filtered by partner on the backend (/admin/reports)
  • Messages from trusted reporters auto create reports
    • Probably standard 'trusted reporter' functionality
    • Maybe auto approve report? not sure yet
  • Partner users can only see reports created by that organisation (through SMS or web ui)

Implementation

  • Create a role for each partner organisation
  • Assign partner users to the appropriate role
  • Reports are assigned a user_id (creator) - this allows us to link reports to partners
  • Reports from SMS
    • have a associated message and reporter
    • Need to be linked to an organisation, either by:
      • user_id assigned to reporter
      • role assigned to reporter

RSS Feed thumbnails

The UI calls for News Feeds with thumbnails (if available). I'm not entirely sure we can achieve this in a timely way at the moment @kamaulynder @Jepchumba - I'm still looking into it? Also how would we address rss feeds that don't have an attached image? With a replacement image or blank?

Tools navigation disappears

When you select the following tabs, the tools navigation disappears:
• Stats
• Manage
• Addons
• Users
• Reports/Create report
• Reports/Comments
• Reports/Download Reports
• Reports/Upload Reports
You have to keep going back to the "Tools" menu to get the navigation tabs.
Screen Shot 2013-01-24 at 3 28 55 PM

County Select on Main Page is Too Long

On the right hand column on the front page, we need to use something like a CSS overflow so that when counties are opened, one can scroll up and down within a fixed space. It's also a slight annoyance when you can't see the county you've selected and have to scroll the page up to see it.

Filter Reports by County

Action:
Select any county in filter reports by county section

Expected Result:
Show reports sent in from the selected county

Site tagline hidden

My site name is "Uchaguzi 2013" and tagline is "Uchaguzi 2013 rocks"
The tagline is hidden somewhere on the header. See

screenshot

It should be as visible as the Site name

Inactive Links

Links on the admin dashboard are inactive.

screenshot

Log out links too

Site message and Site copyright statement don't show up on main page

Site message and Site copyright statements are added on settings page.

Expected behaviour - they should both show up on the main page for visitors to see
Actual behaviour - they are not surfaced at all.

Same issue applies to site banner(though I'm assuming this is unnecessary for uchaguzi, but worth mentioning either way)

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.