Tech interview solution for Powder
docker
docker-compose
go get -u github.com/elojah/powder
cd <cloned_directory>
docker-compose up -d
HTTP server listen per default on port :8080
, it may not start if this port is already affected.
You can change this setting in config/api.json
and docker-compose.yml
$ go get github.com/hashrocket/ws
$ ws -k wss://localhost:8080/connect
> {"method": 0, "content": {"id": "01CCS1SZ4B20G98XYMFGVC9VS4", "name": "roberta"}}
< successfully login
A basic sh
test file is provided in scripts/stories.sh
.