aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2015-06-13README: Add .env source stepHEADmasterTeddy Wing
Forgot to add a step to source `.env`. This is necessary in order for the Coinbase accounts to be properly located and authenticated.
2015-06-13Add READMETeddy Wing
Include a description of the project, the ideas around it, and an explanation of how to run it.
2015-06-07Add LICENSE (MIT)Teddy Wing
2015-06-07.env.sample: Update with new seller Coinbase API keysTeddy Wing
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.
2015-06-07Merge branch 'webserver'Teddy Wing
2015-06-07purchase.go: Split `SendMoney` declaration onto 2 linesTeddy Wing
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.
2015-06-07main.go: Add redirect endpoint for post-transactionTeddy Wing
Hard-coded URL for the demo for the next step in the process after we complete the transaction.
2015-06-07main.go: Create an HTTP handler to initiate transactionsTeddy Wing
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.
2015-06-07Move `sendMoney` func to `purchase` packageTeddy Wing
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"
2015-06-06main.go: Add static file serverTeddy Wing
* 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
2015-06-06main.go: Send money from our primary account to anotherTeddy Wing
Send 0.0001 BTC to the hard-coded Bitcoin address of my test seller account. Confirms that we can send money in a transaction.
2015-06-06Add main.goTeddy Wing
Uses `coinbase-go` to get my Coinbase balance and prints it to the console.
2015-06-06Add .env.sampleTeddy Wing
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.
2015-06-06Add .gitignoreTeddy Wing
Ignore the .env file, used for development to load environment variables.
2015-06-06Initial commit. Install coinbase-go.Teddy Wing
* Use nut for vendored dependencies * Install coinbase-go to interact with the Coinbase API