-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
559503e
commit fbf0f1b
Showing
1 changed file
with
32 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,40 @@ | ||
# React + TypeScript + Vite | ||
# Search Location Map | ||
|
||
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules. | ||
An interactive map application developed using React, TypeScript, and Leaflet. The project allows users to search for specific locations and dynamically updates the map with a marker. The project is hosted on GitHub Pages and automated using GitHub Actions. | ||
|
||
Currently, two official plugins are available: | ||
## ✨Description | ||
|
||
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh | ||
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh | ||
This project is an interactive map application built with modern web development tools. It features a responsive design, dynamic zoom and location updates, and custom marker icons. The application integrates with Nominatim for geocoding address searches. | ||
|
||
## Expanding the ESLint configuration | ||
## ✨Technology Stack | ||
|
||
If you are developing a production application, we recommend updating the configuration to enable type aware lint rules: | ||
- **React:** A JavaScript library for building user interfaces. | ||
- **TypeScript:** A superset of JavaScript that adds static types. | ||
- **Leaflet:** An open-source JavaScript library for mobile-friendly interactive maps. | ||
- **React-Leaflet:** Integration of Leaflet maps into React applications. | ||
- **GitHub Pages:** Free hosting for personal and project websites. | ||
- **GitHub Actions:** Automate workflows, including build and deployment. | ||
|
||
- Configure the top-level `parserOptions` property like this: | ||
## ✨Features | ||
|
||
```js | ||
export default { | ||
// other rules... | ||
parserOptions: { | ||
ecmaVersion: 'latest', | ||
sourceType: 'module', | ||
project: ['./tsconfig.json', './tsconfig.node.json'], | ||
tsconfigRootDir: __dirname, | ||
}, | ||
} | ||
``` | ||
- **Interactive Map:** Dynamic zoom and location updates. | ||
- **Geocoding:** Integration with Nominatim for address search. | ||
- **Custom Markers:** Enhanced visual clarity with custom marker icons. | ||
- **Responsive Design:** Optimized for various devices. | ||
- **Modern Tech Stack:** Built with React, TypeScript, and Leaflet. | ||
|
||
- Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked` | ||
- Optionally add `plugin:@typescript-eslint/stylistic-type-checked` | ||
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list | ||
## ✨Demo | ||
|
||
Check out the live demo of the application [here](https://pshanmukha.github.io/search-location/). | ||
|
||
## ✨Installation | ||
|
||
To run this project locally: | ||
1. Clone the repository: `git clone https://github.com/pshanmukha/search-location.git` | ||
2. Navigate to the project directory: `cd search-location` | ||
3. Install dependencies: `npm install` | ||
4. Start the development server: `npm run dev` | ||
|
||
## ✨Author | ||
|
||
Shanmukha |