/Pingskell

Solution to the Tanda backend challenge, written in Haskell

Primary LanguageHaskellBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Pingskell

My solution to TandaHQ/work-samples/pings.

Requirements

  • Stack (curl -sSL https://get.haskellstack.org/ | sh)

  • Docker (brew cask install docker or sudo apt-get install docker-engine) OR Redis (brew install redis or sudo apt-get install redis-server)

Usage

Booting the DB

  1. docker pull redis
  2. docker run --name PingskellDB -d -p 6379:6379 redis --appendonly yes

OR

  1. redis --appendonly yes

Booting the server

  1. cd Pingskell
  2. stack setup
  3. stack build && stack exec Pingskell

Running the tests

  1. ruby pings.rb

Tearing down the DB

  1. docker kill PingskellDB