https://github.com/opencars/edrmvs
:bookmark_tabs: Tool for extracting data from the web portal
https://github.com/opencars/edrmvs
bigdata hacking open-data restful-api ukraine vehicles-api
Last synced: 5 months ago
JSON representation
:bookmark_tabs: Tool for extracting data from the web portal
- Host: GitHub
- URL: https://github.com/opencars/edrmvs
- Owner: opencars
- License: mit
- Created: 2019-12-22T13:57:43.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2025-03-16T18:40:59.000Z (over 1 year ago)
- Last Synced: 2025-08-15T09:39:54.796Z (10 months ago)
- Topics: bigdata, hacking, open-data, restful-api, ukraine, vehicles-api
- Language: Go
- Homepage:
- Size: 169 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# edrmvs
> Tool for extracting infromation from government resources
## Development
Build the binary
```sh
make
```
Start postgres
```sh
docker-compose up -Vd postgres
```
Run sql migrations
```sh
migrate -source file://migrations -database postgres://postgres:password@127.0.0.1/edrmvs\?sslmode=disable up
```
Run the web server
```sh
./bin/server
```
## Test
Start postgres
```sh
docker-compose up -Vd postgres
```
Run sql migrations
```sh
migrate -source file://migrations -database postgres://postgres:password@127.0.0.1/edrmvs\?sslmode=disable up
```
Run tests
```sh
go test -v ./...
```
## Usage
For example, you get information about this amazing Tesla Model X
```sh
http http://localhost:8080/api/v1/registrations/СХН484154
```
```json
{
"brand": "TESLA",
"code": "CXH484154",
"color": "ЧОРНИЙ",
"date": "2019-06-05",
"first_reg_date": "2016-10-13",
"fuel": "ЕЛЕКТРО",
"kind": "ЛЕГКОВИЙ УНІВЕРСАЛ-B",
"model": "MODEL X",
"num_seating": 7,
"number": "AA9359PC",
"own_weight": 2485,
"rank_category": "B",
"total_weight": 3021,
"vin": "5YJXCCE40GF010543",
"year": 2016
}
```
## License
Project released under the terms of the MIT [license](./LICENSE).