The Cross-Border Hackathon
everyone should lolcommit
Demo repo for ideas and proof of concepts around the April 2018 Hackathon presented by Stone & Chalk in conjunction with NAB and Alibaba Cloud.
Details
Hackathon site is http://thecrossborder.stoneandchalk.com.au/
Challenges
CHALLENGE 1: FOCUS ON AUSTRALIAN BUSINESSES SELLING TO CHINA
Not all Australian businesses are fully leveraging their opportunity to export to Asia via e-commerce channels due to lack of knowledge of the Asian consumers, platforms, export procedures and regulations. How can we use APIs from NAB, Alibaba and other third parties to help?
CHALLENGE 2: FOCUS ON CHINESE TOURISTS AND MIGRANTS COMING TO AUSTRALIA
Chinese tourists and migrants have difficulty finding and engaging with all Australian services (including financial services) when traveling and seeking to establish themselves in Australia. How can we use APIs from NAB, Alibaba and other third parties to help?
Approach
- write a highlevel lifecycle flow as an acceptance spec
- implement as hardcoded pages
- style to make believeable
- build out style/UX/API where greatest value can be demonstrated
Dev setup
# install QT
brew install qt@5.5
echo 'export PATH="$(brew --prefix qt@5.5)/bin:$PATH"' >> ~/.bashrc
bundle
rails server
# this will follow the current flow
open http://localhost:3000
# test the same flow
rspec
# hit the fx-rates NAB api
open http://localhost:3000/fx_rates
open http://localhost:3000/fx_rates/CNY
# hit the GraphiQL frontend
open http://localhost:3000/graphiql
# run a curl query against the GraphQL endpoint
curl -X POST \
-H "Content-Type: application/json" \
--data '{ "query": "{ fx_rates { buy_currency current_buy_rate } }" }' \
http://localhost:3000/graphql
React JS
# assuming foreman is installed
gem install foreman
foreman start -f Procfile.dev -e .env,.env.local
open http://localhost:3000/hello_world
TODO
Michael
- add react.js
- link react to graphql
- move the basic alipay attempt into the rails app
- add graphQL queries with arguments following how to implement graphql in rails
Untaken
- flesh out the flow postcard_holidays_spec.rb to include all the actors like the holiday providers and our own app as well as a populated image search etc
- add ember.js?
- add styling, bootstrap?
- styling China web design trends 2015
- content placeholder (aka spinner) animated shimmer on content blocks FB content placeholder deconstruction
- deploy to Ali cloud
- look into data from Australian Tourism Data Warehouse
- prep for hackathon NAB apis presumably not working till the weekend?
- fix the error handling of NAB api requests
- get the
protect_from_forgery
issue with graphql sorted commit 3f472ff - anything else to update to the way we use service object to fetch APIs
- anything more on rails and graphql setup
- what to learn from twitter users who seem to follow this hackathon
- https://twitter.com/alibaba_cloud
- https://twitter.com/NAB
- https://twitter.com/stoneandchalk
- https://twitter.com/alantsen
- https://twitter.com/SmallTimeVC
- https://twitter.com/philipdalidakis
- https://twitter.com/nomisruption
- https://twitter.com/Matt_Cenin
- https://twitter.com/SarahGrace84
- https://twitter.com/codeCrypto coder
- https://twitter.com/felicia_coco