Skip to content

aaccioly-coding-challenges/test-deliveroo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cron Expression Parser

Idiomatic Cron expression parsing in Scala.

Documentation

Cron Expression Parser is an utility tool meant to read a *nix/ crontab compatible expression and output expected running times.

Distribution

cron-expression-parser is packaged as a ZIP file. A binary distribution includes the main Application JAR file, the Scala 2.13.0 runtime and all required underlying libraries. It also includes start scripts for Linux, OSX and Windows.

Running

To run Cron Expression Parser navigate to the bin folder and run the script compatible with your platform:

cron-expression-parser */15 0 1,15 * 1-5 /usr/bin/find

Please, take a look at the Technical Task Specification for further instructions on how to use this application.

The remaining documentation will be focused on information for other developers.

Building

cron-expression-parser is built using SBT:

To build from source and run tests, execute the following task in the project root directory:

sbt test

Staging

Cron Expression Parser makes use of SBT Native Packager to generate start scripts and native packages.

In order to stage cron-expression-parser so that you can run it locally use the following command:

sbt stage

Scripts and libraries are created in the stage directory. /bin contains fully functional scripts:

./target/universal/stage/bin/cron-expression-parser

Creating a package

To generate a end user distribution run the following task:

sbt universal:packageBin

A ZIP file with everything required to run the application will be generated /target/universal.

While this is beyond the scope of the exercise, for information on how to build other types of packages (tar.gz, deb, rpm, dmg, msi, docker images, etc), please refer to SBT Native Packager Documentation.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages