Skip to content

Pattern-Projects/oireachtas-ifd-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Oireachtas Viewer

A data repository for displaying data gathered from oireachtas API.
Displayed data will include the latest bill proposed in Irelands Government houses: Dail and Seanad.
The site will provide condensed descriptions of the elements of the oireachtas.

Hosted on GitHub Pages Repository on GitHub

License

The project is shared for use with the GNU General Public License v3

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

UX

Responsive Views of Home Page

Users

Expected users of the website include lawmakers, educators, journalists and students of all kinds. They come to the website with questions in need of answering.

User Stories

  1. A student user wants to learn more about the houses of the oireachtas
  2. An education professional user wants to share learning resources with their students
  3. A journalist user looking up the latest legislation
  4. Oireachtas member user searching for colleague information
  5. A political scientist looking for the party of a certain house member

Design

Website Logo - Gold circles representing the seats of the Oireachtas

Mockups

The web app is a single page with different displays given for different functions:

Features

Features planned, implemented and outlined for later development

Planned Features

  • Documentation - ReadMe File, Licence & Mockups
  • JavaScript focused development
  • Data retrieval from Oireachtas API
  • Page refreshes
  • Dynamic content switching by house
    • Bills
    • Members
  • Pagination
  • Breadcrumbs
  • D3/DC data charts
  • Colour Scheme
  • Custom Logo
  • Favicon
  • Jasmine Testing
  • Bootstrap - HTML, CSS Framework
    • Grid System - Columns and Rows
    • Cards
    • Icons
  • Responsive design - Mobile First
  • UX elements
    • User Flow
    • Animations
    • Transitions
  • Accesibility
  • Git - Version Control System
  • GitHub - Remote Repository
  • Deployed - Hosted on Github Pages

Existing Features

  • Documentation - ReadMe File, Licence & Mockups
  • JavaScript focused development
  • Data retrieval from Oireachtas API
  • Page refreshes
  • Dynamic content switching by house
    • Members
  • Pagination
  • Breadcrumbs
  • Colour Scheme
  • Custom Logo
  • Favicon
  • Jasmine Testing
  • Bootstrap - HTML, CSS Framework
    • Grid System - Columns and Rows
    • Cards
    • Icons
  • Responsive design - Mobile First
  • UX elements
    • User Flow
    • Animations
    • Transitions
  • Accesibility
  • Git - Version Control System
  • GitHub - Remote Repository
  • Deployed - Hosted on Github Pages

Features Left to Implement

  • D3/DC data charts
  • Dynamic content switching by house
    • Bills
  • Show members by constituency
    • GPS location

Technologies Used

This project makes use of:

Testing

The site was tested through a number of means.

Jasmine Test First Development

Jasmine was used for test first development where tests are written first then the fuctionality is written to pass the tests. Steps to test with Jasmine are as follows:

  1. Open testing.html in the root directory
  2. Run using a live server process
  3. Visit the page with localhost:[port]/testing.html
  4. The opened page will show the result of the assigned tests

Alternatively:

  1. Visit the hosted version of the website
  2. In the url add testing.html/ to the end
  3. The opened page will show the result of the assigned tests

Tests were written first. Development met with hurdles that had to be worked around, making TFD infeasible in this case.

User Stories

  1. A student user wants to learn more about the houses of the oireachtas
    • From the Oireachtas page the user learns of the houses and members of the Oireachtas
  2. An education professional user wants to share learning resources with their students
    • On the Oireachtas page the user clicks on a bill
    • On the bill page in the related documents section the user clicks on a document
    • The opened pdf is sharable with students
  3. A journalist user looking up the latest legislation
    • On the Oireachtas page the user finds all the latest legislation
  4. Oireachtas member user searching for colleague information
    • The user finds the name of the member they are searching for
    • They click on the user
    • In the opened page the user finds the required information of their colleagues
  5. A political scientist user looking for party breakdown of oireachtas houses
    • The user finds the member from the Oireachtas page and click on them
    • In the member information the user finds party membership information

Deployment

The project is hosted on GitHub Pages

The process involved:

  • Host a git repository on GitHub. Explained here.
  • The root folder contains README.md and index.html files
  • On GitHub repository settings page move to GitHub Pages section
  • Change source to master branch. (Or any desired branch)
  • Provided link will be your projects home (index) page.

To deploy your own version of the website:

  • Have git installed
  • Visit the repository
  • Click 'Clone or download' and copy the code for http
  • Open your chosen IDE (Cloud9, VS Code, etc.)
  • Open a terminal in your root directory
  • Type 'git clone ' followed by the code taken from github repository
    • git clone https://github.com/Pattern-Projects/oireachtas-ifd-project.git
  • When this completes you have your own version of the website
    • Feel free to make any changes to it
  • The website can be run by opening one of the HTML files within a web browser
  • Visit the link provided
  • Your website with any made changes will appear
  • Saved changes to the website will appear here after refreshing the page

The benefits of hosting your website on GitHub pages is that any pushed changes to your project will automatically update the website. Development branches can be created and merged to the master when complete.

It may take a moment for changes to appear on the hosted website.

During development the site is written in VS Code. It is run using Live Server plugin for VS Code.

Credits

Content

The text on the website has been copied and edited from:

Media

The images for the website are taken from:

Acknowledgements

Thank you to the following for inspiration, motivation and the direction I needed:

  • Matthew James Taylor
  • Seun Owonikoko @seun_mentor
  • Simen Daehlin @Eventyret_mentor
  • Robin Zigmond @robinz_alumni
  • @Aymeric MC
  • Edel O' Sullivan @Edel O'Sullivan
  • John Lynch @John_Lynch_alumnus
  • Code Institute

About

A milestone project for the Code Institute - Fullstack Developer Course - 98%

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published