Find nearest cities. technical-test.pdf
Develop a ReactJS and TypeScript web application allowing users to find the three nearest cities based on a selected city.
Click to see details
- Typescript - JavaScript with syntax for types.
- React - The library for web and native user interfaces.
Click to see details
- Clone this repository.
git clone git@github.com:Luchooo/find-nearest.git- Install the dependencies:
npm install- Run the development server:
npm run dev
- Run tests:
npm run test
- Open http://localhost:5173 with your browser to see the result 🚀
Click to see details
| Command | Action | |
|---|---|---|
| ⚙️ | dev |
Starts local dev server at localhost:5173. |
| ⚙️ | test |
Run unit and integration tests. |
| ⚙️ | build |
Build your production site to ./dist/. |
-
Funcionalidades clave
-
Autocompletado de ciudades: Cuando el usuario escriba en el campo de búsqueda, se debe mostrar un autocompletado con los nombres de las ciudades más cercanas.
-
Búsqueda de ciudades cercanas: Al seleccionar una ciudad de la lista, la aplicación debe buscar automáticamente las ciudades más cercanas y mostrarlas al usuario.
-
Visualización de resultados: Mostrar las ciudades más cercanas al usuario, con detalles como el nombre.
-
-
Good practices
✅ Use of types. ✅ Function Naming. ✅ Conventional commits. ✅ Patterns (Custom Hooks, Container/Presentational). -
Librerias
-
TailwindCSS: Rapidly build modern websites without ever leaving your HTML.
-
Axios: A simple HTTP client based on promises for both the browser and Node.js:
-
Geolib: Library to provide basic geospatial operations like distance calculation.
-
React Testing Library: Builds on top of DOM Testing Library by adding APIs for working with React components.
-