An open API service indexing awesome lists of open source software.

https://github.com/eiselems/timestamp-microservice

NodeJS Service which converts timestamps and dates
https://github.com/eiselems/timestamp-microservice

Last synced: 8 months ago
JSON representation

NodeJS Service which converts timestamps and dates

Awesome Lists containing this project

README

          

# Timestamp microservice

## Overview

This is part of the FCC Curriculum.

I wrote this microservice to get familiar with NodeJS and Heroku as a hosting platform.

Test Installation: https://date-microservice.herokuapp.com/

Functionality:
* pass a string containing either an Unix timestamp or a natural language date (e.g. January 1, 2016)
* The service returns both form for the supplied date
* In case the date is invalid the returned properties are `null`

The microservice

# Quick Start Guide

### Starting the App

At first clone the repository and get into the repository's folder.

Install the app by running:
`npm install`

To start the app, make sure you're in the project directory and type `node server.js` into the terminal. This will start the Node server.

You should the following messages within the terminal window:

```
Node.js listening on port 8080...
```

Next, open your browser and enter `http://localhost:8080/`. Congrats, you're up and running!

## License

MIT License. [Click here for more information.](LICENSE.md)