Tracking the supply chain of agricultural product is a common challenge. How do you know where you coffee really came from? Is your apple truly from a sustainable farm? This app addresses these problems by adding visibility to the supply chain process by allowing users to add, update, and read transactions on the Ethereum blockchain.
This Rails Api will provide our React front end with the information it needs (ethereum addresses) to query our smart-contract ecosystem on the Ethereum blockchain. It will also store information that is not blockchain pertinent about the goods, transactions, and checkpoints we'll be dealing with such as (name, price, checkpoint, &c).
We are just getting started on this project. Eventually, users will be able to visit the root page and view a list of items and their respective supply chain paths.
Future iteration plans include the ability to add goods/products and register change of possession (e.g., between producer and transport).
We are a group of four Turing School students, and this is our capstone project for the back-end engineering program. You can learn more about our development process at these links: DTR (team expectations), stand-ups, Pivotal Tracker. And more about us at these ones: Nick, David, Ethan, Mike.
git clone [email protected]:DavidKnott/sourcery-api.git
cd sourcery-api/
// install dependencies
bundle
// create db and load the schema
rake db:{create,schema:load}
// run the tests
rspec
// start the server
rails s
If using this with the client app, be sure to run these steps as well for testing:
rake db:test:prepare
RAILS_ENV=test rake db:seed
rails -s -e test -p 9000