| Age | Commit message (Collapse) | Author |
|
Forgot to add a step to source `.env`. This is necessary in order for
the Coinbase accounts to be properly located and authenticated.
|
|
Include a description of the project, the ideas around it, and an
explanation of how to run it.
|
|
|
|
Need a second set of API keys for another user on Coinbase (the seller
in the transaction). It's a hack, okay, no OAuth here.
Using these we can send Bitcoins from the seller to the buyer as a proof
of concept for ownership transferral of the house.
|
|
|
|
Makes it easier to read. Previously I had trouble trying to do this
because I put the argument list on the second line by itself but you
can't do that. You need to separate at a comma inside a set of
parentheses in order to compile.
|
|
Hard-coded URL for the demo for the next step in the process after we
complete the transaction.
|
|
Visiting this endpoint will create 2 transactions that sends the money.
Handle errors in the HTTP handler and pass them back from the
transaction functions now.
|
|
Create a new package for sending money. Take API keys as args which
obviously is not a good idea but it's a hackathon.
* Add functions in main.go to initiate hard-coded transactions for house
buyer and seller
* Move from "com.teddywing" to "github.com/teddywing"
|
|
* Temporarily comment out Bitcoin transaction trigger
* Add a static file server to the main function
* Add a sample index.html file that gets served at the root
We'll use this to serve our HTML files for the AngelHack demo.
Used this article as a resource:
http://www.alexedwards.net/blog/serving-static-sites-with-go
|
|
Send 0.0001 BTC to the hard-coded Bitcoin address of my test seller
account. Confirms that we can send money in a transaction.
|
|
Uses `coinbase-go` to get my Coinbase balance and prints it to the
console.
|
|
Sample .env file (the real one doesn't get tracked) so people know what
environment variables need to be set and so devs can make their own
local .env copy.
|
|
Ignore the .env file, used for development to load environment
variables.
|
|
* Use nut for vendored dependencies
* Install coinbase-go to interact with the Coinbase API
|