Skip to content

Instantly share code, notes, and snippets.

View Matt-T-Git's full-sized avatar
🏴󠁧󠁢󠁷󠁬󠁳󠁿

Mathew Thomas Matt-T-Git

🏴󠁧󠁢󠁷󠁬󠁳󠁿
View GitHub Profile
@Matt-T-Git
Matt-T-Git / gamesService.js
Last active June 3, 2020 14:33
Technical exercise answer with comments -- Company House Challenge
/**
* 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
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": [{