A CLI application to extract the top customers, and their favourite snacks.

Overview

zimpler.candystore

An assignment which written as a CLI application in Golang for Zimpler interview process.

Getting Started

This repository includes an software development assignment to extract the top customers, and their favourite snacks.

Installation

To install the project, run the following command;

$ git clone https://github.com/bozd4g-interview/zimpler.candystore.git

To download dependencies, run the following command;

$ go mod download

You can use your own files to calculate the top customers, and their favourite snacks.

To calculate the top customers from a file as an example, run the following command;

$ go build -o candy
$ ./candy file --path ./test/data/data-with-comma.csv --separator comma --has-header

Flags Usage

Candy command flags are as follows;

Candy is a tool to find top customers and their favourite snacks

Usage:
  candy [command]

Available Commands:
  file        File is a sub command to find top customers and their favourite snacks from a file
  help        Help about any command

Flags:
  -h, --help   help for candy

Use "candy [command] --help" for more information about a command.

The file command of candy has the following flags;

File should include 3 columns: Name, Candy, Eaten
Output will create in dist folder

Usage:
  candy file [flags]

Flags:
      --has-header         if the file has a header
  -h, --help               help for file
  -o, --output string      path of the output file (default "./dist")
  -p, --path string        path of the file
  -s, --separator string   separator of the columns [tab | comma] (default "tab")

Addition

I decided to use a cli application to extract the top customers, and their favourite snacks from a data file. I could use a scraper to collect data from the website, but I decided to use a data file. This way is so easier to test. But I can easily implement a scraper in the future if I want because I used SOLID principles.

Author

Furkan Bozdag ([email protected]), December 2021

top in container - Running the original top command in a container

Running the original top command in a container will not get information of the container, many metrics like uptime, users, load average, tasks, cpu, memory, are about the host in fact. topic(top in container) will retrieve those metrics from container instead, and shows the status of the container, not the host.

silenceshell 69 Jun 20, 2022
The runner project is to create an interface for users to run their code remotely without having to have any compiler on their machine

The runner project is to create an interface for users to run their code remotely without having to have any compiler on their machine. This is a work in progress project for TCSS 401X :)

cam 6 May 29, 2022
zipspy - a CLI tool to extract files from zip archives in S3 without needing to download the entire archive

Zipspy allows you interact with ZIP archives stored in remote locations without requiring a local copy. For example, you can list the filenames in an S3 ZIP archive, download a subset of files, search and retrieve files with regular expressions, and more!

Alec Rabold 0 Feb 19, 2022
A golang CLI to display various stats about Hockey teams and their players

A golang CLI to display various stats about Hockey teams and their players

Jonathan Mainguy 1 Oct 26, 2021
null 0 Jan 27, 2022
Tool to extract log files off of the roboRIO automatically

extractor Tool to extract log files off of the roboRIO automatically Steps This program does the following steps once ran: Read from TOML config file

Team 501 - The PowerKnights 2 May 15, 2022
A CLI application that allows you to run a complete ToDo app from your terminal application

todo-cli This is a CLI application that allows you to run a complete ToDo app from your terminal application. As a user you can: Create a list of todo

Jonathan Reeves 0 Oct 11, 2021
Top-like interface for container metrics

Top-like interface for container metrics ctop provides a concise and condensed overview of real-time metrics for multiple containers: as well as a sin

bradley 13k Jun 26, 2022
Binary Defense 50 Jun 1, 2022
Gobby-cli - CLI application to debug gobby applications

go(bby) Interactive debugging tool for gobby applications Usage Coming soon™ Ins

Qwiri 0 Feb 8, 2022
Go cmd util that prints cmd-line args with their index

echoidx This is an exercise of the book The Go Programming Language, by Alan A.

Santiago Rodriguez 0 Dec 18, 2021
A command line tool that builds and (re)starts your web application everytime you save a Go or template fileA command line tool that builds and (re)starts your web application everytime you save a Go or template file

# Fresh Fresh is a command line tool that builds and (re)starts your web application everytime you save a Go or template file. If the web framework yo

null 0 Nov 22, 2021
Restful services on a Go application integrated with mongodb. Articles demo application.

article-app Restful Go services demo integrated with MongoDB by Cahit Ünver article-app is a GO application integrated with MongoDB. Application is a

Cahit Ünver 0 Jan 17, 2022
Build an interactive CLI application with Go, Cobra and promptui. Video tutorial available on the Div Rhino YouTube channel.

Build an interactive CLI app with Go, Cobra and promptui Text tutorial: https://divrhino.com/articles/build-interactive-cli-app-with-go-cobra-promptui

Div Rhino Dev 14 Jun 3, 2022
DuckAGoGo - CLI Application for quick searches and translation

DuckAGoGo CLI Application for quick searches and translation DuckAGoGo lets you

J. David Alas Valle 0 Jan 10, 2022
Rdelf2json - CLI application for parsing ELF and converting to json

rdelf2json CLI application for parsing ELF and converting to json Install go ins

kinpoko 0 Jan 22, 2022
BDIX Tester is a small CLI application for testing connectivity BDIX connected servers

BDIX Tester is a small CLI application for testing connectivity BDIX connected servers. It's primary purpose is to check whether a BDIX connected server is accessible from your current ISP or not.

Sadman Sakib 7 May 17, 2021
An extension for the GitHub Cli application that displays your current contribution graph

gh-graph An extension for the GitHub Cli application that displays your current contribution graph in the terminal (logged out contribution graph) Ins

Benjamin Chadwick 14 Sep 29, 2021
Yikes is a cli-application to simplify the process to maintaining a list of tasks to complete.

yikes Yikes is a cli-application to simplify the process to maintaining a list of tasks to complete. It also has commands to help store random notes a

Shreya Paradkar 2 Oct 7, 2021