One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| // Lightweight GraphQL generic client | |
| const GraphQLClient = require('graphql-request').GraphQLClient; | |
| const crypto = require('crypto'); | |
| const path = require('path'); | |
| const api = require('./api_constants'); | |
| //GraphQL query string to get all inventory, filtering by a specific dealer | |
| const vehicles = ` | |
| { | |
| allDealerships(filter:{ name:"Wheel Kinetics"}) { |
| /** | |
| * A simple circular data structure | |
| */ | |
| function Circular(arr, startIntex){ | |
| this.arr = arr; | |
| this.currentIndex = startIntex || 0; | |
| } | |
| Circular.prototype.next = function(){ | |
| var i = this.currentIndex, arr = this.arr; |
Instructions last updated in 2020 (when I was working on this)
Electron is tricky to get set up on Windows Subsystem for Linux, but it can work!
Four things needed overall:
apt install several dependencies| // unofficial sqlite3 types. | |
| // These are typed only for my scope | |
| declare module "@sqlite.org/sqlite-wasm" { | |
| type InitOptions = { | |
| print: (...msg: any[]) => void; | |
| printErr: (...msg: any[]) => void; | |
| }; | |
| declare type PreparedStatement = { |