项目作者: 1XWebbyX1

项目描述 :
Timestamp Microservice
高级语言: HTML
项目地址: git://github.com/1XWebbyX1/timestamp-microservice.git
创建时间: 2019-01-21T15:07:55Z
项目社区:https://github.com/1XWebbyX1/timestamp-microservice

开源协议:

下载


Timestamp Microservice

A full stack Timestamp Microservice api project to get unix and UTC timestamp from a date string.

Technologies

Project is created with :

  • Express: 4.16.4
  • Node: 4.4.5

Install

To clone and run this application, you’ll need Git and Node.js (which comes with npm) installed on your computer. From your command line:

  1. # Clone this repository
  2. $ git clone https://github.com/1XWebbyX1/timestamp-microservice
  3. # Go into the repository
  4. $ cd timestamp-microservice
  5. # Install dependencies
  6. $ npm install
  7. # Run the app
  8. $ npm start

You will then be able to access it at localhost:3000

Note: If you’re using Linux Bash for Windows, see this guide or use node from the command prompt.

How to Use

Example Usage:
GET [project url]/api/timestamp/2015-12-25
GET project url]/api/timestamp/1450137600

Example Output:
{“unix”:1451001600000, “utc”:”Fri, 25 Dec 2015 00:00:00 GMT”}

You may also like

Inspiration

This Project was inspired by user stories at freeCodeCamp.

License

MIT


GitHub @1XWebbyX1