Skip to content

opencars/vin-decoder-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

99d3631 ยท Jan 28, 2023

History

32 Commits
Oct 2, 2022
Oct 2, 2022
Jan 28, 2023
Mar 6, 2020
Jan 28, 2023
Jan 4, 2020
Oct 2, 2022
Sep 1, 2020
Oct 2, 2022
Sep 1, 2020
Sep 2, 2020
Feb 6, 2022
Oct 2, 2022
Oct 2, 2022
Mar 6, 2020

Repository files navigation

VIN Decoder

๐Ÿš— Decoding vehicle identification number

Development

Build the binary

make

Start postgres

docker-compose up -Vd

Run sql migrations

migrate -source file://migrations -database postgres://postgres:password@127.0.0.1:5432/vin-decoder\?sslmode=disable up

Run the web server

./bin/server

Usage

For example, you get information about this amazing Tesla Model X

http http://localhost:8080/api/v1/vin-decoder/5YJXCCE40GF010543
{
  "vehicle": {
    "check_digit": true,
    "country": "United States",
    "manufacturer": "Tesla, Inc.",
    "region": "North America",
    "serial": "010543",
    "year": 2016
  },
  "vin": {
    "vds": "XCCE40",
    "vis": "GF010543",
    "wmi": "5YJ"
  }
}

License

Project released under the terms of the MIT license.