cli-path

My first attempt at building a CLI tool


Project maintained by iosifv Hosted on GitHub Pages — Theme by mattgraham

đź“ź cli-path

npm version cli-app-test-build

A simple CLI tool to search paths on google maps. The intent is to use this on your most often taken paths to quickly get the grasp of the time needed for your travel - like going home from the office every day.

Installation

npm install -g cli-path

or

yarn add -g cli-path

These will add the global executable clip

Usage

Authentication

To use our built in api, select the “Authentication” option from the interactive menu.

Searching raw text

Then you can search for a direction informaiton using free text

Save new locations

Searching from saved locations

Config

Update application config parameters

Programming Concepts / Technologies used

The real reason I built this is for training purposes. Since every tutorial out there is trying to teach you how to increase one certain skill vertically, with this project I’m trying to expand vertically by touching as many technologies possible for this humble subject of making a Google Maps API call 🙂

Architecture

The very zoomed out explanation is: a cli-app will call Google Maps API to view directions information within the terminal. In order to not have the user generate and add his own Google Maps tokens a new API is built which stands in between the cli-app and Google API. This way the user can choose to use our instantly available Clip API or Google Maps API with his own credentials.

List of implemented things

List of todo’s

Problems encountered that are worth mentioning

Just to be clear, these are worth mentioning to my future self so that I don’t do these mistakes again