https://github.com/hoxtygen/autocomplete
https://github.com/hoxtygen/autocomplete
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/hoxtygen/autocomplete
- Owner: Hoxtygen
- Created: 2022-07-13T07:19:35.000Z (almost 4 years ago)
- Default Branch: develop
- Last Pushed: 2022-12-26T20:21:14.000Z (over 3 years ago)
- Last Synced: 2025-02-28T10:56:55.630Z (over 1 year ago)
- Language: JavaScript
- Size: 339 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Autocomplete
## How to run the App
* clone the repo.
* open a terminal on your PC, run `git clone https://github.com/Hoxtygen/autocomplete.git`
* `cd` into the project folder and run `npm install`
* run `npm start`
* open a browser and navigate to `localhost:3000`
* type in starwars character into the autocomplete input
## Note
The project makes use of the starwars character data for autocompletion. Data can be fetched in 2 ways
* locally using local starwars data.
* Using the [starwars API](https://swapi.dev/api/people/).
Two change handlers are provided;
* handleChange makes use of [starwars API](https://swapi.dev/api/people/).
* localHandleChange makes use of local starwars data.
To switch betweent these 2 use either as the handleChange prop on the `` component in the `` component present in the `views` directory
## Part 2
Answers to theoretical question can be found in [here](https://github.com/Hoxtygen/autocomplete/blob/develop/part2/answers.md)