This is an application designed to connect waste points with vulnerable groups, enabling people to collect food that's about to be wasted for their own use. This application uses Africa's Talking API for USSD functionality and a Rails backend.
- Geolocation technology.
- Real-Time Notifications.
- Surplus Food and needs Listings.
- User-Friendly Interface.
- Feedback and Rating System
- Ussd functionality for the app.
In order to run this project you need:
- Ruby on Rails Environment
- Africa's Talking Account
- Africa's Talking Gem
- Rails Application Setup
- Environment Configuration
- Controller and Routes
- Controller Logic
- Africa's Talking Callback URL
- Ngrok (for Local Development)
- Testing
Client
Server
Database
Clone this repository to your dist folder:
git@github.com:Ayokunnumi1/zero-hunger-hackathon.git
cd zero-hunger-hackathon
rails new zero-hunger-hackathon
cd zero-hunger-hackathon
- Sign Up for Africa's Talking
- Visit Africa's Talking.
- Click on "Sign Up" and create a new account.
- Verify Your Account
- Check your email for a verification link from Africa's Talking.
- Click the link to verify your account.
- Login to Your Africa's Talking Account
- Go to Africa's Talking Login.
- Enter your credentials and log in.
- Create a New Application In the dashboard,
- Navigate to "Sandbox Apps" or "Production Apps".
- Click on "Create a New App".
- Enter a name for your application (e.g., "USSDApp").
- Save your new application.
- Obtain API Key
- In your application dashboard, find your "API Key".
- Copy the API key for use in your Rails application.
- Set Up a USSD Channel
- Navigate to "USSD" in the dashboard.
- Click on "Create Channel" or "Add Service Code".
- Follow the prompts to set up a USSD code (e.g., *123#).
- Link the USSD code to your application.
- Configure Callback URL
- Set the "Callback URL" to point to your Rails application's endpoint (e.g., https://yourdomain.com/ussd). Use Ngrok for local development (e.g., https://your-ngrok-subdomain.ngrok.io/ussd).
- Add Africa's Talking Credentials to Rails
- Go to ngrok and sign up for a free account or login if you already have one.
- To install ngrok, visit the download page.
- To connect your account to ngrok run
ngrok authtoken <your authtoken>
and replace with your authtoken. - We will get back to ngrok later, let's first setup our rails app.
- gem 'rack-cors'
- gem 'africastalking'```.
- Add the following gems to your gemfile and run
bundle install
.
Use this project in the sandbox demo of Africastalking ussd API.
👤 Ayokunnumi Omololu
- GitHub: @Ayokunnumi1
- Twitter: @Ayokunnumi
- LinkedIn: @Ayokunnumi
👤 Austin Obimbo
👤 Md Mahadi Hasan Rifat
- GitHub: (https://github.com/Rifat8080)
- Twitter: (https://twitter.com/mdmahadirifat98)
- LinkedIn: (https://www.linkedin.com/in/md-mahadi-hasan-rifat-8b7851265/)
👤 Al Amin Khan Shakil
- GitHub: Al Amin Khan Shakil
- Twitter: Al Amin Khan Shakil
- LinkedIn: Al Amin Khan Shakil
- Utilize iot devices for food delivery
- Feedback functionality.
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
You are welcome to support this project by giving leaving a star on the project.
Acknowledgements to Tech to the rescue team and haba na haba for giving us a platform to code to fight food hunger.
This project is MIT licensed.