The command-line interface (CLI) application developed in Go, to upload, update, delete, and list plain-text files on server (server's source code). Alongside this, the CLI can output all words in all files on the server and most frequent words of them. The CLI does this in optimal way, taking minimum time to count words and frequent words.
First of all, we need to launch server in docker so that app can make requests to it.
Deploys server to docker
store deploy
deploys server on docker
-h, --help help for deploy
-p, --port string server port (default "9254")
Now, let's upload a file to server example:
store add -f ./data/file.txt
output:
File `file.txt` is uploaded successfully
you can upload multiple files as well
store add -f ./data/file1.txt -f ./data/file2.txt
-f, --file stringArray Files to be uploaded on server
-h, --help help for add
- store update - updates files
- store rm - remove file froms server
- store ls - lists all files of server
- store wc - Counts words in all files on server
- store freq-words - Prints N most frequent words on server