Giter Club home page Giter Club logo

foodpact's Introduction

foodpact

Visualize the environmental impact of foods you eat. ๐Ÿ”๐Ÿ‰๐Ÿฅฆ

Application quickstart

Basics

  1. Create and activate a virtualenv
  2. Install the requirements

Here for Powershell -

git clone <this_repo>
cd <this_repo>

python -m virtualenv venv

.\venv\scripts\activate.ps1

Environment variables

set-variable -name "APP_SETTINGS" -value "project.server.config.DevelopmentConfig"

or

set-variable -name "APP_SETTINGS" -value "project.server.config.ProductionConfig"

Run the application

python manage.py run

Access the application at the address http://localhost:5000/.

When you're done

Deactivate the virtual environment!

deactivate

foodpact's People

Contributors

ashleylizg avatar gingeleski avatar

Watchers

James Cloos avatar

foodpact's Issues

Figure out some static HTML solution from Matplot stuff

Right now, of the three .ipynb files you have, only the calculator one really needs to run server-side.

That is to say, the other two files are just putting out graphs, but they don't have to change. They're static, not dynamic.

So not only do we not have to run them server-side but it would be time laborious and complicated to do that.

Figure out some way of taking your existing graph work and getting it into just some static front-end code we can use. HTML, CSS, and/or JavaScript.

By Googling "matplotlib to d3" (remember that JS graphing library?) I came across this. Look into that, if it doesn't seem suitable, look into other stuff.

Move calculator logic out of main/views.py

  • Move calculator logic out of main/views.py
  • The "views" should just be about printing stuff to the screen
    • Not the math behind what gets there
  • Remember we did something sort of similar in the parkpics project

(Does not need to be done as part of the "first release" project/milestone)

Fix README.md wonkiness

The root README.md has some wonky formatting.

I tried just doing echo "# foodpact" >> README.md from Powershell and things went awry.

Needs fixing.

create graphics for homepage

create data visualizations of GHG emissions associated with food and farm transport, US imports of various food categories, water use, and food waste per household on average

Add .gitignore

Needs a .gitignore to keep out at least .ipynb_checkpoints/ and probably other Python artifacts.

add tab for action steps

include resources for composting, reducing food waste, and local food options like CSA networks and farmer's market locators

Set up front-end boilerplate

To begin the project, we'll work out what the frontend / client-side stuff should look like.

It'll be based on Bootstrap 4. That's friendly across many devices plus has a ton of example resources available.

To complete this issue:

  • Set up an example file with Bootstrap 4 assets
  • Add a README.md to this directory to help sister

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.