Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bcgov/smk-cli

The Command Line Interface enables users to rapidly create and edit SMK map configuration, including data consumption via OGC and Esri ReST data access services and local data files.
https://github.com/bcgov/smk-cli

citz databc leaflet map-kit mapping mapping-tools maps nodejs opensource smk smk-cli vuejs

Last synced: 1 day ago
JSON representation

The Command Line Interface enables users to rapidly create and edit SMK map configuration, including data consumption via OGC and Esri ReST data access services and local data files.

Awesome Lists containing this project

README

        

# Simple Map Kit Command-line Interface

![img](https://img.shields.io/badge/Lifecycle-Stable-97ca00)

A command line utility and visual editor for creating and editing [Simple Map Kit](https://github.com/bcgov/smk) applications.

# Documentation

Check out the SMK CLI documentation available [here](https://bcgov.github.io/smk-cli/)

# Installation

The SMK CLI can be installed via NPM in two different ways;
either local to the current project, or globally for your whole system.

## Global installation

To install the command globally, so it can be used from any project in our system, use this command:

npm install --global @bcgov/smk-cli

This may require you to use administrative rights (or `sudo`) on your machine, depending on how it is configured.

Test that installation was successful by executing:

smk help

## Local installation

To install the command local to a particular project, first change into the directory of the project:

cd
npm install --save-dev @bcgov/smk-cli

The `smk` will be installed for that particular project, as a dev dependency.
Test that installation was successful by executing:

node_modules/.bin/smk help

# Commands

smk create [name]

This will launch the command line tool for creating a new SMK application.
You can provide a name, it will be the name of the new subdirectory for the application.
This will download the latest version of SMK from GitHub and build a map configuration for you to start working with.

smk edit [-p port]

Once you've created an SMK application, or if you have an existing one, you can run this command to launch the visual editor.

For more information on the SMK project, or to read documentation on SMK development and building your finished SMK app, see https://bcgov.github.io/smk/

# Uninstall

npm uninstall --global @bcgov/smk-cli