Skip to content

Express powered timestamp microservice. Go to an endpoint and get a unix and UTC timestamp that corresponds with the endpoint.

Notifications You must be signed in to change notification settings

AlexVCS/Timestamp-Microservice

Repository files navigation

Timestamp Microservice

Node and Express powered Timestamp Microservice. Go to an API endpoint and get a unix and UTC timestamp that corresponds with the endpoint. Invalid dates return an error. This is a project I completed as part of the Back End Development and APIs certification from freeCodeCamp.

Check out the timestamp microservice

Table of Contents

Screenshots

This is the homepage. The two links under usage are the API endpoints you can hit and edit as you wish.

Inital screen of the Timestamp Microservice

Here we're hitting an API endpoint. Take note of the URL after /api/. That's a millisecond timestamp. You can change the timestamp to a date such as 1984-02-12, or adjust the milliseconds.

Example of data that gets shown when hitting an API endpoint

Setup

Git, Node.js and NPM are required to run this project. Install Git by following this. If you don't have Node and NPM installed please follow these instructions.

  1. Click the green code button:

GitHub screenshot showing where to click the green code button

  1. From there, click the button to the right of the URL under HTTPS. This will copy the URL of the repository.

  2. Then open your terminal or command line. If you haven't used the command line before learn how to here.

  3. If you've got a folder where you keep projects, change directories into that folder. After that type this command:

git clone https://github.com/AlexVCS/Timestamp-Microservice.git

This clones the repository to your local machine. It has a root directory called Timestamp-Microservice to store all the files.

  1. Change directories into that folder:

cd Timestamp-Microservice

After that you can open the project in your text editor of choice. I use Visual Studio Code and launch it from the command line. Learn how here.

  1. Once you have the project open, you need to install the dependencies. Run this in your command line from the root (mad-libzz folder) of the project:

npm install

  1. After that finishes, run this to start the project:

npm start

  1. Head to your browser and type this into the address bar to run the project:

localhost:3000

Technologies

  • Node
  • Express

About

Express powered timestamp microservice. Go to an endpoint and get a unix and UTC timestamp that corresponds with the endpoint.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published