Build the binary
makeStart postgres
docker-compose up -Vd postgresRun sql migrations
migrate -source file://migrations -database postgres://postgres:[email protected]/wanted\?sslmode=disable upRun the web server
./bin/serverStart postgres
docker-compose up -Vd postgresRun sql migrations
migrate -source file://migrations -database postgres://postgres:[email protected]/wanted\?sslmode=disable upRun tests
go test -race -bench=. -v ./...For example, get information about this amazing Tesla Model S
http http://localhost:8080/api/v1/wanted/vehicles?number=СВ5501ВХ[
{
"body_number": "5YJSA1E28HF176944",
"brand": "TESLA - MODEL S",
"color": "СІРИЙ",
"id": "3019228562749883",
"insert_date": "2019-08-16T15:37:54Z",
"kind": "ЛЕГКОВИЙ",
"number": "СВ5501ВХ",
"ovd": "СОЛОМ’ЯНСЬКЕ УПРАВЛІННЯ ПОЛІЦІЇ ГУНП В М. КИЄВІ",
"revision_id": "17082019_1",
"status": "removed",
"theft_date": "2019-08-16"
}
]Project released under the terms of the MIT license.