API for bit.dj
Getting started:
You will need postgres as well as redis pre-installed with no special configurations
Install Deps:
$ ./script/bootstrap
Provision database:
$ ./script/recycle
Test it:
$ ./script/test
Build it:
$ go build
Run it:
./bitAPI
Resources
POST /user
{
"username": "Bob",
"email": "BobAndAllThingsBob@Bob.com",
"password": "Boberson"
}
GET /socket
Pretty self explanitory. Requires auth atm.
POST /session
{
"username": "Bob",
"password": "Boberson"
}
Returns:
{"token" : "<sessionToken>"}