Giter VIP home page Giter VIP logo

wicit's Introduction

#WICit: Where to Shop with WIC

The California deployment of WICit is live!

Check it out at findwic.com!


Development Environment Setup

OS X

  1. Install node.js and NPM (Node Package Manager)
  2. Install grunt command-line on your machine: sudo npm install -g grunt-cli
  3. Fork the repository and setup a local clone
  4. Move into your local wicit directory: cd <yourdirectory>/wicit
  5. Copy the .env.dist file to a file called .env
    1. Navigate to https://www.mapbox.com/studio/
    2. Select Create a Style - leave all of the defaults
    3. Select Create
    4. Click the "< Basic" in the top left of the screen
    5. Click the Menu under the new style (default name is Basic) and select Share, develop, use
    6. Copy the Share URL and update the MAPBOX_INTEGRATION_URL parameter in the .env file
  6. Install server-side dependencies, build the app: npm install. You can build the app without installing dependencies using grunt build
  7. Start the server: node app.js
  8. Try it out

Windows

  1. Install: Git
  2. Install: Node & NPM
  3. Install: Python 2.x.x
    • Version 3 of Python is not supported by nodegyp so make sure to install version 2.x.x.
  4. Install: Visual Studio Community (with Update 4)
    • Visual Studio Express for Windows Desktop should also work, but if you want a full IDE, go with the Community edition
  5. From a command prompt, install the Grunt Command Line Interface: npm install -g grunt-cli
  6. Follow the OS X instructions above from step 4

Development

  1. Setup the app using the relevant instructions above.
  2. From a new command prompt, start the build watcher to automatically build client-side JavaScript and CSS when JS and CSS files change: grunt dev. This task does not watch for server-side changes. For those, you'll need to restart the app server.

Deployment

Digital Ocean

Wicit is ready to be deployed on Digital Ocean using Dokku (wicit doesn't use a database right now, so you don't have to worry about that part). Just be sure to use dokku config:set <appname> VAR=value to add the settings present in your local .env file to your deployment environment.

Connecting (you will need your ssh key on the droplet or find someone who has their ssh key on the droplet):

  1. ssh root@<ip address>

Renew SSL Manually (it should auto-renew via cron, but to troubleshoot)

  1. dokku letsencrypt:auto-renew

###License WICit is free software, and may be redistributed under the MIT-LICENSE.

wicit's People

Contributors

donaldbrower avatar donmccurdy avatar elizabethcase avatar feydan avatar jasonody avatar jesserosato avatar joelrip avatar josephlei avatar kalebclark avatar kelfink avatar louispham23 avatar mikyladewitt avatar natebass avatar roughani avatar stancheta avatar

Stargazers

 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

wicit's Issues

Readme typo

Try it out ###License Wicit is free software, and may be redistributed under the MIT-LICENSE.

Translate to Spanish

I think it would be a good idea for the app to translate to Spanish, especially in the "Do I Qualify?" section.

Funding Request: WICit Hosting

We've been paying to host WICit on Amazon Web Services. Total expenditures to date have been approximately $300. We've made efforts to reduce monthly hosting costs to approximately $30, but we would love for a community partner to step-up and help us sustain the platform with $1,000 annually so that we can feel confident in scaling the application and adding additional features. If you're interested, please drop us a line at hello [at] codeforsacramento [dot] org. Or comment below.

Integrate WICIT with CDPH Open Data API

Right now, WICIT is drawing from dummy sample data. The app should be getting data from the CDPH Open Data API. The API is not available to the public until 8/8, but we're working on getting access to it in the meantime.

Wishlist: Add list view of local results

Hi! I'm Phil from OpenOakland.

Why?

  • Text is often easier to read than a map (map illiteracy is a thing)
  • Text is more accessible for the visually impaired.
  • Easier to deal with long lists (simple vertical scrolling).
  • Easy to enhance results (like loading supplemental data (store hours) or getting public transit directions).

Examples: Yelp! search results

Check Map Boundaries Before API Call

The app should only call the API if the new bounding box on the map does not contain the previous bounding box, e.g. if the user zooms in, but doesn't 'pan' the map, we don't need to call the API.

Store user location in session

Especially on mobile, location approval requests get really annoying. We should store the user's location in a session, and use the center button (see #15) to let the user refresh their location.

Double "Food Data" folders

There are currently 2 folders containing data related to what foods are approved for WIC purchase:

  1. "Food Data" [1]
  2. "food_data" [2]

Proposing the following:

  1. Delete [1] since it is the older of the two folders, this will minimize confusion and redundancy
  2. Update the files in [2] with the most recent PDFs available from the CDPH website
  3. Keeping the CDPH files named the way they come from the CDPH website, they are terribly named and long, but this will allow us to update the foods PDFs without having to re-work the naming of the files.

I did a full dump of the PDFs as of 2015-03-22 using a Chrome download extension and will submit a pull request with the three proposals, lets discuss and modify as necessary. Thanks

Once we get the Microsoft database dumps of the food lists we might not need these PDFs at all.

Broken API?

WICit is down. It's returning an "Unable to load nearby locations" error. I think that the API connection broke when they launched the new https://chhs.data.ca.gov/. They mentioned something about the portal being "federated, " but not sure what that means. Also, I don't even see the same JSON API icon/link on the new portal that was on the CDPH portal.

Client-side UI for 'Search for Approved Foods' feature

A search page is needed to allow users to search for WIC approved foods. The server-side is in place (working on a limited data set for now), and available via a GET request to /foods, which returns a JSON array of 'food' objects.

Swap URLs for API endpoints

From CHHS:

Thank you for developing an API to the California Department of Public Health (CDPH) Open Data Portal. This Portal has been merged into the California Health and Human Services (CHHS) Open Data Portal, which contains all the data previously on the CDPH Open Data Portal, plus other Departments under CHHS such as Medi-Cal and Social Services. You can find the new locations for the datasets by going to the CDPH Open Data pages on Socrata, clicking on the “About” tab, and copying the “CHHS URL” field. Regards, --The CDPH Open Data Team

Updated Vendor Locations

I am designing code to notify us when the vendor location data set is updated, however there is no ETA.

For the time being, there is an updated version (2015-05-27) located at the link below. Can someone please help me locate where/how this data is integrated into the application so in the future I can simply incorporate it as part of my fork and submit a pull request? Thank You

https://cdph.data.ca.gov/Facilities-and-Services/Women-Infants-and-Children-WIC-Authorized-Vendors/i7wi-ei4m

Logo

WICIT needs a logo! Read up on WIC to get some inspiration, and then come up with something rad!

Move to github pages - Need HTTPS

@natebass was able to port this from node/express to github pages. The only problem that we have found is that location services will not work because we have not figured out how to deploy github pages site with custom domain & HTTPS.

Location Services requires HTTPS.

Can you figure out how to deploy a site to github pages, with a custom domain AND HTTPS?

Add Analytics

Setup Google Analytics account for C4S and add script to WICit.

Improve Map Appearance

Right now, WICIT gets its map tiles from the MapQuest API. This is great, because it's (basically) free, but the map is kinda ugly. Can we find a nicer looking alternative?

Map WIC Offices

It would be rad to map WIC offices as well as vendors. Not sure where we can find data on this, but it might work to just use data from a CSV or something and set up a server side route to retrieve it, since there's probably a fairly small number of these.

Missing files for dev environment

Paul here with Code for Osage. This looks awesome and I am trying to fork this for a local project, as it is super perfect for what we are working on. Unfortunately, I'm running into some errors because it seems .env.dist and package.json are not included on master branch, and they appear outdated on production branch. Any chance I can grab a copy of the latest version of them?

CDPH working on a WIC mobile app!

I've been in touch with the WIC team and they informed me they are testing a mobile app for WIC which looks pretty cool.. It's great to see that they are owning the development.

Let's all take a look and see what feedback we have that can be provided to them and/or how we might be able to support or collaborate with them! The link is below!!

md.wic.ca.gov

Search for Approved Foods

WIC is super specific about what it covers, their site has PDFs full of approved foods. It would be great to get that data in a usable format and provide a search utility for WIC users to be able to see if foods qualify before they go to the store. Ideally, they'd be able to scan UPCs in the store to see if that food qualifies, but that may be overly ambitious...

Unable to load nearby locations

Something broke, locations are no longer displaying on findwic.com

Sorry for opening a bummer issue and not providing a solution to fix it, but yeah.. just putting it out there =\ Can anyone help?

Provide directions within WICit

It would be a awesome if users didn't need to leave WICit to get directions. Right now, switching to Google Maps is probably the only way to a accomplish this, as it looks like Mapbox's directions API is limited to payed accounts.

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.