Simple, asynchronous search box call with a real REST API call & debouncer, based on JavaScript.
Table of Contents
Node.js is required to launch.
- Clone* this repository
- Install* packages & dependencies
yarn
- Serve data at http://localhost:5000/results
yarn run api
- Search through site content at http://localhost:3000 to call an endpoint for results
yarn run dev
- Build* the app for production to the
dist
folder
yarn run build
- as per preferred approach
- npm equivalents can be used as well
- app bundler optimizes the build for the best performance (the build is minified and the filenames include the hashes)
- Atkinson (hyperlegible font)
- json-server (backend with mocked API)
- Parcel (module bundler)
- Sass (CSS preprocessor)
- Yarn (package manager)