A small React app that allows searching for cars based on a JSON data set, created as part of an assignment.
After installing the dependencies using npm install
:
npm run start
: Starts a web server for developmentnpm run build
: Builds the app for production in the/build
directorynpm run test
: Runs the interactive test watcher
Also see Create React App.
The UI mainly consists of a single text input to enter a search query, and a table to display the results. The query can contain multiple words separated by spaces, all of which have to be present in either the cars' type, color or price. Additionally, words starting with "<" or ">" and followed by a number can be used to search for cars by their max or min price, respectively.
The app was created with Create React App for simplicity. Pure CSS is used for styling the table.