Timestamp Microservice - freeCodeCamp APIs and Microservices Project Tutorial
Channel: Ganesh H
Date: 2020-07-15

This is a full walkthrough for the Timestamp Microservice project on freeCodeCamp. We create an express app and set up a route for our API endpoint to take in an input. We can then determine if this input is a date or timestamp and use it to generate an appropriate response JSON.

Link to Project : https://www.freecodecamp.org/learn/apis-and-microservices/apis-and-microservices-projects/timestamp-microservice
Written Guide and Source Code : https://www.notion.so/ganeshh123/Timestamp-Microservice-02425f5a96a44665af1c259317fde541

Timestamps:
0:00 - Project Setup
02:25 - Setting up the Route
05:10 - Capturing the Input
06:20 - Test 1 - It should handle a valid date, and return the correct unix timestamp
10:28 - Test 2 - It should handle a valid date, and return the correct UTC string
12:06 - Test 3 - It should handle a valid unix date, and return the correct unix timestamp
16:20 - Test 4 - It should return the expected error message for an invalid date
18:30 - Test 5 - It should handle an empty date parameter, and return the current time in unix format
20:58 - Test 6 - It should handle an empty date parameter, and return the current time in UTC format

-————————————————————————————————————- 
Node.js is an open-source, cross-platform, JavaScript runtime environment that executes JavaScript code outside a web browser. Node.js lets developers use JavaScript to write command line tools and for server-side scripting—running scripts server-side to produce dynamic web page content before the page is sent to the user's web browser. 

The Node Package Manager (npm) is a command-line tool used by developers to share and control modules (or packages) of JavaScript code written for use with Node.js.

Express.js, or simply Express, is a web application framework for Node.js. It is designed for building web applications and APIs. It has been called the de facto standard server framework for Node.js. Express runs between the server created by Node.js and the frontend pages of a web application. Express also handles an application's routing.

MongoDB is a cross-platform document-oriented database program. Classified as a NoSQL database program, MongoDB uses JSON-like documents with optional schemas. MongoDB is developed by MongoDB Inc. and licensed under the Server Side Public License (SSPL).

Mongoose is an Object Data Modeling (ODM) library for MongoDB and Node.js. It manages relationships between data, provides schema validation, and is used to translate between objects in code and the representation of those objects in MongoDB.

freeCodeCamp (also referred to as “Free Code Camp”) is a non-profit organization that consists of an interactive learning web platform, an online community forum, chat rooms, online publications and local organizations that intend to make learning web development accessible to anyone. Beginning with tutorials that introduce students to HTML, CSS and JavaScript, students progress to project assignments that they complete either alone or in pairs. Upon completion of all project tasks, students are partnered with other nonprofits to build web applications, giving the students practical development experience.

Thanks for Watching!