Skip to content

About

Location Search is an ongoing project where I’m building a Google Maps-inspired application — but with a twist. It aims to replicate core map features while introducing innovative ideas, all without relying on the Google Maps API.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

Location Search

A React + Vite app to search locations and view them on a map.

Development

npm install
npm run dev

Build

npm run build

Deploy to GitHub Pages

  1. Make sure your vite.config.ts contains:
    export default defineConfig({
      // ...
      base: '/location-search/',
    });
  2. Add the correct homepage in package.json:
    "homepage": "https://priyakh87.github.io/location-search"
  3. Deploy:
    npm run deploy

Your app will be available at:
https://priyakh87.github.io/location-search/

Troubleshooting

  • If the site shows a blank page, check the browser console for 404 errors.
  • Ensure the base in vite.config.ts matches your repo name.
  • Push all changes to GitHub before running npm run deploy.

React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:

export default tseslint.config({
  extends: [
    // Remove ...tseslint.configs.recommended and replace with this
    ...tseslint.configs.recommendedTypeChecked,
    // Alternatively, use this for stricter rules
    ...tseslint.configs.strictTypeChecked,
    // Optionally, add this for stylistic rules
    ...tseslint.configs.stylisticTypeChecked,
  ],
  languageOptions: {
    // other options...
    parserOptions: {
      project: ['./tsconfig.node.json', './tsconfig.app.json'],
      tsconfigRootDir: import.meta.dirname,
    },
  },
})

You can also install eslint-plugin-react-x and eslint-plugin-react-dom for React-specific lint rules:

// eslint.config.js
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'

export default tseslint.config({
  plugins: {
    // Add the react-x and react-dom plugins
    'react-x': reactX,
    'react-dom': reactDom,
  },
  rules: {
    // other rules...
    // Enable its recommended typescript rules
    ...reactX.configs['recommended-typescript'].rules,
    ...reactDom.configs.recommended.rules,
  },
})

About

Location Search is an ongoing project where I’m building a Google Maps-inspired application — but with a twist. It aims to replicate core map features while introducing innovative ideas, all without relying on the Google Maps API.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages