This is a simple website which validates if an excel/geodata-file is valid according to the Open Geodata Model.
In case you're more interested in the Open Geodata Model specification you'll find it here
The Validator - Tool itself can be accessed here
This project is built with Vite and React using TypeScript. Below are instructions to run and manage the project locally.
- Node.js (version 14 or higher)
- npm (version 6 or higher) or yarn
Ensure you have Node.js and npm installed:
node -v
npm -v- Clone the repository
git clone https://github.com/mapme-initiative/ogm-validator;
cd ogm-validator;- Install dependencies
npm install
# or using yarn
yarn installTo start the development server and begin working on the project:
npm run devThis will:
- Launch Vite in development mode.
- Enable hot module replacement (HMR).
- Serve the app on
http://localhost:5173/by default.
You should see output similar to:
vite vX.X.X dev server running at:
> Local: http://localhost:5173/
> Network: use --host to expose
Open your browser and navigate to http://localhost:5173/ to view the app.
To ensure code quality and consistency, run:
npm run lintThis will use ESLint to analyze all .ts and .tsx files and enforce rules, reporting any unused disable directives and failing if there are any warnings or errors.
- Vite config:
vite.config.tscontains project-specific Vite configurations (e.g., path aliases, plugins). - TypeScript config:
tsconfig.jsonsets up TypeScript compilation options. - ESLint config:
.eslintrc.*contains linting rules and settings.
-
If you encounter port conflicts, you can specify a different port:
vite --port 3000 --mode development
-
Clear Vite cache:
rm -rf node_modules/.vite
-
For detailed error stacks, enable debug logging:
DEBUG=vite:* npm run dev
Feel free to open issues or submit pull requests. Please follow the existing coding conventions and ensure all lint checks pass.