GithubHelp home page GithubHelp logo

eputnam / latrine Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 8.0 8.69 MB

Web app for finding hygiene resources in Portland, OR

Python 67.19% HTML 3.25% CSS 0.68% JavaScript 27.87% Dockerfile 0.40% Shell 0.61%

latrine's People

Contributors

eputnam avatar jastr945 avatar jonwalz avatar jrp114 avatar katedam avatar maryannet avatar olsonso avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

latrine's Issues

Open an InfoWindow for each marker on mouseover.

Each Place on the map will have Resources listed as icons (assuming resource type is checked for display by user).
Each Resource should have a tiny summary beneath the icon of feedback: thumbs-up with count and thumbs down with count.

Find or create thumbs-up and thumbs-down icons.

Find or create thumbs-up and thumbs-down icons for voting on each resource displayed on the map.

They should be simple and easy to understand for people with disabilities or those who face a variety of barriers to computer use. Upload them to latrine_django/frontend/src/images.

Filters - create display of filters for data Resource type along top of UI

A row of filters with clear icons will show across the top of the page.
This row of filters will display at all times.
Each icon will show with a checkbox next to each reflect whether or not they are checked.
Filters will initially display unique sets of sample data.

Note:
Filters will later be connected to unique API endpoints.

A logo for the project

We will need a logo at some point. Upload the image file to latrine_django/frontend/src/images.

Find icons for 9 initial types of Resources

Find or create clear icons to represent:

  1. restrooms
  2. meals
  3. showers
  4. laundry
  5. free public pay phones
  6. wifi hot spots
  7. beds
  8. phone charging stations
  9. libraries

They should be simple and easy to understand for people with disabilities or those who face a variety of barriers to computer use. Upload them to latrine_django/frontend/src/images.

Create a Footer component

Create Footer.js and Footer.css at the bottom of the page. It can contain things like:

  • a current year updated automatically
  • copyright info
  • a link to Sisters of the Road
  • a link to the Terms of Use section (?)
  • a link to the Privacy Policy section (?)
  • a link to this GitHub repo so that others can contribute
    etc., etc.

Resize the map if necessary.

Check out react-bootstrap - it might be very helpful for creating a responsive footer looking good on any screen.

Create a Navbar component

Create a navigation bar at the top by adding Navbar.js and Navbar.css. It might contain a project name and logo (once we have them) and a menu. It would also be nice to add a brief explanation of what this website is all about. Resize the map if necessary.
Check out react-bootstrap - it might be very helpful for creating a responsive navigation bar looking good on any screen.

Create an API endpoint for showers and some other facilities

  1. Create Facility, Comment and Flag models in Django with some mandatory and optional fields;
  2. Write a view to make the data accessible with a GET request;
  3. Write tests for the view and the models;
  4. Load some data from fixturefile.json;
  5. Update ReadMe.md with instructions on running tests.

Add more fields to the Resource and Feedback models.

The following changes will make our models more consistent with the RefugeRestrooms public API.

Add the following fields to the Resource model:

  • "created_at" (DateTimeField),
  • "updated_at" (DateTimeField),
  • "accessible" (can try NullBooleanField),
  • "changing_table" (can try NullBooleanField)

All of these fields can be empty/blank and none of them is required.

Remove the "icon_type" field from the Feedback model. Add the following instead:

  • "upvote" (IntegerField with default value 0)
  • "downvote" (IntegerField with default value 0)

Test the new fields by adding them to the model instance in tests.py.

Change data representation in Django Admin.

Change the way our Admin page represents the models.

  1. Edit the __str__() method of the Place model to include only organization and address fields in the title.
  2. Add the __str__() method to the Resource model and display the place and facility_type fields in the title.
  3. Add the __str__() method to the Feedback model and display just the resource field.

Find a way to sort all entries in alphabetical order (probably by adding a Meta class to each model).

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.