This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Technical Exercise Answer, Companies House | |
* Mathew Thomas 16/05/2020 | |
*/ | |
const express = require('express'); // Express NodeJS module | |
const path = require('path'); // Path NodeJS module | |
const bodyParser = require('body-parser'); // Body-Parser NodeJS module | |
const port = 8080; // Define port as 8080 as per exercise requirements |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const games = [ | |
{ | |
"title": "Uncharted 4", | |
"id": 1, | |
"description": "For the first time ever in Uncharted history, drive vehicles during gameplay", | |
"by": "Sony", | |
"platform": ["PS4"], | |
"age_rating": "16", | |
"likes": 100, | |
"comments": [{ |