This app takes in records about people and returns them, sorted in different ways.
There are two ways to use this app: from the command line and the API. These are discussed below.
You will need Leiningen 2.0.0 or above installed.
lein run /path/to/file.txt [/path/to/another/file.txt ...]
To start a web server for the application, run:
lein ring server
Pretty self-explanatory. Run the command with one or more input files and get the output.
The API runs on localhost:3000
Post a JSON paylod like the one below:
{
"line" : "Hicks | Xavier | Male | Persian-blue | 6/30/2011"
}
Returns the records sorted by gender (females first), then) by last name, ascending.
Returns the records sorted by birthdate, ascending.
Returns the records sorted by last name, descending.
lein cloverage
Copyright © 2021 Vatche Jabagchourian