Skip to content

andradeoromulo/timestamp-microservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API Project: Timestamp Microservice for FCC

Run on Repl.it

About

This is my project of the Timestamp Microservice challenge for the freeCodeCamp API and Microservice certification. It was built based on the boilerplate available here.

Endpoints:

Endpoints Description
GET /api/timestamp Return a date object with unix timestamp and UTC timestamp of the current timestamp
GET /api/timestamp/{dateParam} Return a date object of the informed timestamp (unix or UTC ISO-8601)

Example usage:

Example output:

  • {"unix":1451001600000, "utc":"Fri, 25 Dec 2015 00:00:00 GMT"}
  • {"error" : "Invalid Date" }

How to use:

Just run on terminal:

npm install
npm start

Feedback

I'm a student and I really would like to hear case you have any tips, correction suggestions or comments about any my of projects (🤓).

About

Timestamp Microservice project for freeCodeCamp API and Microservices certification.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors