A Full Stack Javascript application built using NodeJS and Express
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
node_modules
public/css
views
.gitignore
README.md
app.js
package-lock.json
package.json

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/