← Back to APIs

bimm-test

Developer Tools

https://github.com/jucamilo340/bimm-test

NestJS backend service that ingests XML vehicle data from NHTSA, transforms it into JSON, stores it in MongoDB, and exposes it through GraphQL.

About this project

The Vehicle Data Ingestion Service is a NestJS backend application that fetches vehicle data from NHTSA's public XML APIs, transforms it into a unified JSON structure, stores it in MongoDB, and exposes the data through a GraphQL endpoint. It handles vehicle makes and their associated types, providing a clean, document-based storage solution optimized for GraphQL queries. Key features include XML-to-JSON conversion, data transformation into a standardized format, concurrent API requests for efficiency, and a layered architecture separating domain logic, application services, infrastructure, and presentation. The service uses MongoDB for persistence with embedded vehicle types, avoiding joins while maintaining data integrity. To get started, clone the repository and install dependencies with `npm install`. Configure MongoDB by setting the `MONGODB_URI` in a `.env` file (see `.env.example`). Start the application with `npm run start:dev`, which launches the service at `http://localhost:3000` with GraphQL available at `/graphql`. Ingest data by running `npm run sync:vehicles`, which fetches, transforms, and stores vehicle makes and types from NHTSA.

This is a GitHub repository (source code), not a hosted HTTP API endpoint.

From the docs

Snippets taken from the repository README when available.

curl
npm install