This is a simple Next.js app that allows users to see the location of entities on a map, and to determine their distance to them by clicking on it.
The app uses Next.js, TypeScript and Leaflet as its main technologies. Testing is done through Jest, but I currently lack the time to work on proper unit or E2E tests.
- Next.js
- React
- TypeScript
- Leaflet
- Jest (incomplete)
Follow these steps to set up the project locally:
-
Clone the repository:
git clone https://github.com/eppu/locator-map.git
-
Navigate to the project directory:
cd locator-map
-
Create a
.env
file based on the provided.env.sample
file and fill in the required values:cp .env.sample .env
-
Install dependencies:
npm install
-
Run the development server
npm run dev
The app will be accessible at http://localhost:3000.
The project is automatically deployed through Vercel when commits are pushed to the 'main' branch.