Skip to content
/ vite-leaf Public template

A typescript base project, using vite and leaflet.

Notifications You must be signed in to change notification settings

MonumentoSoftware/vite-leaf

Repository files navigation

vite leaf logo

Base Leaflet-Vite

This project is a template web application that displays a Leaflet map with a default satellite tile layer. It also now includes a select option for changing map layers.

vite leaf screenshot

Installation

To install the project, clone the repository and install the dependencies using npm or yarn:

# Install dependencies using npm
npm install

# Or install dependencies using yarn
yarn install

Usage

To run the project, use the start command:

# Run the project using npm
npm start

# Or run the project using yarn
yarn start

This will start a development server at http://localhost:5173/ where you can view the map.

Building the project

To build the project for production, use the build command:

# Build the project using npm
npm run build

# Or build the project using yarn
yarn build

This will create a dist directory with the production-ready files.

Code Quality

This project uses ESLint for linting and Prettier for code formatting. The linting and formatting rules are defined in the .eslintrc.js and .prettierrc files. To lint the project, use the lint command:

Copy code
# Lint the project using npm
npm run lint

# Or lint the project using yarn
yarn lint

This will check the project's files for code style violations. You can also use the fix command to automatically fix some of the issues:

Copy code
# Automatically fix some of the code style violations using npm
npm run fix

# Or automatically fix some of the code style violations using yarn
yarn fix

License

This project is licensed under the MIT License.

About

A typescript base project, using vite and leaflet.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published