{"id":21374862,"url":"https://github.com/banool/foodbrew","last_synced_at":"2025-03-16T09:21:03.640Z","repository":{"id":90881386,"uuid":"57466849","full_name":"banool/foodbrew","owner":"banool","description":"Food for Thought, a project created in less than 48 hours for Codebrew 2016.","archived":false,"fork":false,"pushed_at":"2018-03-21T11:19:31.000Z","size":33375,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-14T23:43:23.473Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://foodbrew.dport.me","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/banool.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-04-30T23:56:09.000Z","updated_at":"2018-03-21T11:19:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"d4d4a84b-adeb-4954-9447-e51a4981704a","html_url":"https://github.com/banool/foodbrew","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/banool%2Ffoodbrew","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/banool%2Ffoodbrew/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/banool%2Ffoodbrew/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/banool%2Ffoodbrew/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/banool","download_url":"https://codeload.github.com/banool/foodbrew/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243848093,"owners_count":20357489,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-22T08:45:54.609Z","updated_at":"2025-03-16T09:21:03.617Z","avatar_url":"https://github.com/banool.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Food for Thought\nFood for Thought is the project our team created in less than 48 hours for Codebrew 2016, codenamed foodbrew.\nHave a look at the project here: http://foodforthought.xyz/\n\n## Overview\nThis project was created for the topic of \"Food and Innovation\".\nThe main objective of our solution is to provide a platform that connects food suppliers that have edible, but unsellable, food left over at the end of the day, with charities who could redistribute the food to those in need.\nThis is in the hope that they can form long term agreements with each other.\n\n### Basic functionality\nThe web service provides separate functionality for suppliers (thinkers) and collectors (charities). Each of these can then look for nearby users of the alternate type either with a list or using a Google Maps interface.\nOnce a user finds an organisation that they think could be appropriate for them, a chat interface is supplied so that they can organise an arrangement.\nEach organisiation has a full size splash page that shows who they have an agreement with.\nThe splash page is designed such that it provides (specifically to a corporate supplier) an attractive demonstration of that company's social conscious.\nThe server is running over at [Digital Ocean](https://digitalocean.com).\n\n### Directory structure\nConsidering that this project was made in under 48 hours, the directory structure is a bit of a mess. As such, some unused ideas and code have been dumped into folders instead of removed or repurposed.\n\n- **www** Contains the HTML, JavaScript and [Foundation](http://foundation.zurb.com/) code for the front end, as well as all image assets.\n- **scripts** Contains the Python script that handles incoming HTTP GET requests.\n- **map_samples** Contains working files for the Google Maps geolocation component contributed by [ChrisLinn](https://github.com/ChrisLinn).\n- **image_working_files** Contains any files used for creating images, logos or\nbackgrounds that aren't in the actual website, like .psd files or unused versions\nof images. The final logos and splash background are in the root of this folder.\n- **old_go_stuff** Contains files from an early attempt at coding the site with Go. In the end we went with a jQuery -\u003e Python -\u003e MySQL setup.\n- **other** Contains a few other things made along the way.\n\n## Tech implementation\nThe website is composed of three main components.\n\n- Foundation based HTML front end with jQuery.\n- Python middleware that captures HTML requests, interacts with the database and returns useful responses.\n- MySQL database containing information related to users, agreements, chatting, etc.\n\nThe database itself is not in the repo at this point, but the way it is interacted with can be seen in handler.py.\nAn early physical design can be seen [here](https://www.dropbox.com/s/ew08qykyukjhhqb/early_database_physical_design.jpg?dl=0).\n\n## Viability\nIdeologically, this solution has benefits for both parties.\nFrom the charity side the benefits are obvious, namely being able to reliably collect edible food in order to redistribute it. This could be via homeless shelters, drop off points, etc. That part is up to the charity, we just help them get the food in the first place.\nThe service also offers benefits for the company. Standard procedure for most food suppliers (i.e. supermarkets) is to just throw food out at the end of the day.\nFrom their perspective, redistributing the subpar food to those who might want it holds no real profit or exposure benefits.\nHowever, if a charity were to instead come to pick up the food as they are going to throw it into the bins, this results in very little extra work on their behalf.\nFurthermore, the supplier can demonstrate to their consumers, using our service, that they are living up to their corporate responsibility and that they have a social conscience.\n\nAs a service provider, down the track we could charge suppliers a small fee for the right to say that they subscribe to our program, similar to other food certification services like the [Heart Foundation Tick](http://heartfoundation.org.au/healthy-eating/heart-foundation-tick).\n\n## More information\nFeel free to contact [me](https://github.com/banool) or any of the contributors about the project :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbanool%2Ffoodbrew","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbanool%2Ffoodbrew","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbanool%2Ffoodbrew/lists"}