Baby's first Go and boostrap project. I was hoping to crank this out in a day but that never happened.
A really simple REST API that allows for creating and reading contact details.
POST /alumni
: Create an alumnGET /alumni/{id}
: Get alumn with id
This relies on some environment variables being set to define the db connection details:
(source $path_to_secrets && go run server/*.go)
Can hardly pass for an app but it's a simple static html page that uses some mixture of bootstrap, custom css, and jquery to hit the above api to save data. It's severely lacking in robustness but think it's a good place to start from.
Navigate to app/index.html
and things should just load. You can mess around and input some data that'll
hit the aforementioned api.
- document the thing
- add authentication to get requests -- we shouldn't expose this data to the public
- bootstrap scripts to setup
GOPATH
and what-not