aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
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