Miss any of our Open RFC calls?Watch the recordings here! »

crimemap-sync-cli

0.1.8 • Public • Published

crime-sync-cli · GitHub license npm version Build Status codecov code quality

crime-sync-cli is CLI tool that provides useful commands to import crimes data to crimemap database. It is a interface to crimemap-sync-api server that you can use to dispatch data syncronization workers on its api server.

Overview diagram

The diagram below gives a ideia of how the syncronization process works.

Diagram

Installation

Install crime-sync-cli with

$ npm i --global crimemap-sync-cli

And type the following line to test the installation

$ crime-sync --version

Since the crimemap-sync-cli is just a interface to syncronization server, you need to install the sync server as well. Follow the these instructions to get sync server installed.

Usage

Usage: crime-sync [command]
 
A syncronizer client tool to import crime data to crimemap database.
 
Options:
  -V, --version                output the version number
  -h, --help                   output usage information
 
Commands:
  login <username> <password>  Log-in into crimemap database.
  logout                       Log-out from crimemap database.
  import <pdf-url>             Import crimes data from pdf file crimemap database.
  list-imports [options]       List the top 10 most recents data imports.
  remove-import <ID>           Remove a crime data import.
 
Examples:
  $ crime-sync import http://domain.com/files/crimesdata-2019-02-05.pdf

Tech stack

License

MIT © paulosales

Install

npm i crimemap-sync-cli

DownloadsWeekly Downloads

16

Version

0.1.8

License

MIT

Unpacked Size

127 kB

Total Files

42

Last publish

Collaborators

  • avatar