Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Timestamp Microservice

This service accepts a string as a parameter and will check whether it is either a human readable date or a Unix timestamp. If it is, it will return both the Unix timestamp and the natural language form of that date as a JSON object. If it is neither, it returns 'null' for those properties.

You can test it at https://timestamp-micro-srvc.herokuapp.com

A Full Stack Javascript application built using NodeJS and Express. An API Project for FreeCodeCamp.

Example Usage

You can access the API directly through a browser or through a get ajax request.

https://timestamp-micro-srvc.herokuapp.com/December 15, 2015
https://timestamp-micro-srvc.herokuapp.com/1450137600

Example Output

{ 
  "unix": 1450137600, 
  "natural": "December 15, 2015" 
}

To Run Project Locally

  1. Fork this repo
  2. Clone the fork
  3. Install Dependencies: $ npm install
  4. Start the Server: $ node app.js
  5. Visit http://localhost:3000/

About

A Full Stack Javascript application built using NodeJS and Express

Topics

Resources

Releases

No releases published

Packages

No packages published