Skip to content

A fun project that calculates the difference between 2 dates without using Date() or similar

Notifications You must be signed in to change notification settings

JaxCavalera/date-diff-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This project was created to achieve several things outlined below:

  • Process a pair of dates input as comma separated values and calculate the difference between them in days without using Date() or similar.
  • Implement Jest Unit Tests onto critical functionality.
  • Demonstrate a wide variety of techniques to perform calculations.
  • Use MobX with a locally defined store structure to further demonstrate the flexibility of this store management library.

This project was NOT created to demonstrate beautifully structured functional composition Whilst there are aspects of functional composition present, the main purpose here was to explore and demonstrate a broader usage of shorthand techniques that could produce the desired outcome quickly.

Install instructions

  • Clone the repository
  • Open a terminal / cmd prompt and run npm i

Running the application

  • Once installed, run npm start to fire up a the application on localhost:3000 (it should open a browser window for you)

Running the unit tests

  • In a terminal / cmd prompt run npm run test

About

A fun project that calculates the difference between 2 dates without using Date() or similar

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published