A backend API for searching for and inspecting wine batches or Lots.
Lots can be searched for by a query string, details of a lot retrieved and each lot's components can be listed and broken down based on a number of properties: Year, Variety, Region and Year/Variety combination
There is a UI built to interact with this API Wine Search Frontend
> git clone https://github.com/kieranongh/vin-demo
> cd vin-demo
> npm install
The default port is 43000 or set your own
export API_PORT=3000
To start the app
# development
> npm run start
# watch mode
> npm run start:dev
# production mode
> npm run start:prod
Searches for and returns an array of Lots for the given query
Matches the query against lotCode
and description
Retrieve a Lot for the given lotCode
Lists a breakdown of the given Lot's components according to year
Lists a breakdown of the given Lot's components according to variety
Lists a breakdown of the given Lot's components according to region
Lists a breakdown of the given Lot's components according to year and variety combination
Built with Nest, a progressive Node.js framework for building efficient and scalable server-side applications.
Nest is MIT licensed.