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
{ | |
"token":"parent_funds_biz", | |
"metadata":{ | |
"my_name_1":"Parent_Funds_Meta_1", | |
"my_name_2":"Parent_Funds_Meta_2" | |
}, | |
"notes":"My notes", | |
"password":"My_passw0rd", | |
"phone":"5105551212", | |
"website":"https://my_business_02.com", |
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
{ | |
"hello":"WORLD!" | |
} |
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
type User { | |
id: Int! | |
name: String! | |
email: String! | |
addresses: [Address] | |
} | |
type Address { | |
street: String! | |
city: String! |
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 users = [ | |
{ | |
id: 1, | |
name: "Francis", | |
email: "franny@ha.com", | |
addresses: [ | |
{ | |
street: "1644 Melrose Place", | |
city: "Los Angeles", | |
country: "USA", |
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 fs = require('fs') | |
const key = fs.readFileSync('./localhost/localhost.decrypted.key') | |
const cert = fs.readFileSync('./localhost/localhost.crt') | |
const express = require('express') | |
const app = express() | |
app.get('/', (req, res, next) => { | |
res.status(200).send('Hello world!') | |
}) |
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
authorityKeyIdentifier = keyid,issuer | |
basicConstraints = CA:FALSE | |
keyUsage = digitalSignature, nonRepudiation, keyEncipherment, dataEncipherment | |
subjectAltName = @alt_names | |
[alt_names] | |
DNS.1 = localhost | |
IP.1 = 127.0.0.1 |
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 { | |
addTimestamps, | |
truncateLocations | |
} = require('./testHelpers') | |
const KEYS = [ | |
'userData', | |
'deviceTypes', | |
'nutritionPlans', | |
'exerciseRoutine', |
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 KEYS = [ | |
'userData', | |
'deviceTypes', | |
'nutritionPlans', | |
'exerciseRoutine', | |
'goals', | |
'miniChallenges', | |
'rewards' | |
] |
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 result = { | |
userData: require('./testData/userData.json'), | |
deviceTypes: require('./testData/deviceTypes.json'), | |
nutritionPlans: require('./testData/nutritionPlans.json'), | |
exerciseRoutine: require('./testData/exerciseRoutine.json'), | |
goals: require('./testData/goals.json'), | |
miniChallenges: require('./testData/miniChallenges.json'), | |
rewards: require('./testData/rewards.json') | |
} |
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 { | |
addTimestamps, | |
truncateLocations | |
} = require('./testHelpers') | |
const userData = require('./testData/userData.json') | |
const deviceTypes = require('./testData/deviceTypes.json') | |
const nutritionPlans = require('./testData/nutritionPlans.json') | |
const exerciseRoutine = require('./testData/exerciseRoutine.json') | |
const goals = require('./testData/goals.json') |