https://github.com/constgen/task-zip-code
Test task for Moovweb
https://github.com/constgen/task-zip-code
Last synced: 30 days ago
JSON representation
Test task for Moovweb
- Host: GitHub
- URL: https://github.com/constgen/task-zip-code
- Owner: constgen
- License: mit
- Created: 2018-07-26T11:28:28.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-12-12T21:15:03.000Z (over 7 years ago)
- Last Synced: 2025-02-25T23:45:29.497Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://constgen.github.io/task-zip-code/
- Size: 171 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Zip codes searcher
## Setup project
```bash
npm install
```
## Development
Run dev server with HMR
```bash
npm start
```
## Building
```bash
npm run build
```
## Linting
Run ESlint check on the entire project with autofix
```bash
npm run lint
```
## Technical requirements
Make an App that has an
- [x] input field
- [x] button
- [x] list of city, states
- [x] user should be able to enter a zipcode into the field and press the button to save the city and state to the list.
Bonus:
- [x] input should clear on submit
- [x] Don't allow duplicate records - same zip code wont be stored 2 or more times
- [x] Selecting an item in the list should fill the input with the zip code that was used to look up the city and state
- [x] when a list item is selected it should appear selected
- [x] if the user enters a new zip code while an item is selected and hits the button, the record should be updated (if valid input)
- [x] User should be able to deselect selected item