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
/** | |
* PayPal Node JS SDK dependency | |
*/ | |
const checkoutNodeJssdk = require('@paypal/checkout-server-sdk'); | |
/** | |
* Returns PayPal HTTP client instance with environment that has access | |
* credentials context. Use this instance to invoke PayPal APIs, provided the | |
* credentials have access. | |
*/ |
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
<!DOCTYPE html> | |
<head> | |
<title>AXIOS Example</title> | |
<link rel="shortcut icon" href="https://lh3.googleusercontent.com/MpnmfR3zYPTojA03QbhGgwIHucmH5s4G2vbIlADYhODL488MQt_BuVztv9LYmJbhwkScYN0DIXuh4d10YMsLbWXT"> | |
</head> | |
<body> | |
<div> | |
<h1>Sub: {{sub}}</h1> |
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
// Full Documentation - https://docs.turbo360.co | |
const express = require('express') | |
const axios = require('axios') | |
const router = express.Router() | |
router.get('/', (req, res) => { | |
res.render('index', { text: 'This is the dynamic data. Open index.js from the routes directory to see.' }) | |
}) | |
router.get('/fetch', (req, res) => { |
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
<!DOCTYPE html> | |
<head> | |
<title>AJAX Example</title> | |
<link rel="shortcut icon" href="https://lh3.googleusercontent.com/MpnmfR3zYPTojA03QbhGgwIHucmH5s4G2vbIlADYhODL488MQt_BuVztv9LYmJbhwkScYN0DIXuh4d10YMsLbWXT"> | |
</head> | |
<body> | |
<div> | |
<h1>Select Reddit Sub</h1> | |
<div id="list"></div> |
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
<!DOCTYPE html> | |
<head> | |
<title>XHR Example</title> | |
<link rel="shortcut icon" href="https://lh3.googleusercontent.com/MpnmfR3zYPTojA03QbhGgwIHucmH5s4G2vbIlADYhODL488MQt_BuVztv9LYmJbhwkScYN0DIXuh4d10YMsLbWXT"> | |
</head> | |
<body> | |
<div> | |
<h1>Select Reddit Sub</h1> | |
<div id="list"></div> |
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 vertex = require('vertex360')({ site_id: process.env.TURBO_APP_ID }) | |
const express = require('express') | |
const app = express() | |
vertex.configureApp(app) | |
app.use(vertex.setContext(process.env)) | |
const index = require('./routes/index') | |
const endpoint = require('./routes/endpoint') // Import the endpoint.js route file |
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 vertex = require('vertex360')({ site_id: process.env.TURBO_APP_ID }) | |
const express = require('express') | |
const app = express() | |
vertex.configureApp(app) | |
app.use(vertex.setContext(process.env)) | |
const index = require('./routes/index') | |
const endpoint = require('./routes/endpoint') |
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
// Full Documentation - https://docs.turbo360.co | |
const express = require('express') | |
const router = express.Router() | |
router.get('/', (req, res) => { | |
res.json({ | |
data: [ | |
{name:'Learn Programming', path:'learnprogramming'}, | |
{name:'JavaScript', path:'javascript'}, |
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
<!DOCTYPE html> | |
<head> | |
<title>FETCH Example</title> | |
<link rel="shortcut icon" href="https://lh3.googleusercontent.com/MpnmfR3zYPTojA03QbhGgwIHucmH5s4G2vbIlADYhODL488MQt_BuVztv9LYmJbhwkScYN0DIXuh4d10YMsLbWXT"> | |
</head> | |
<body> | |
<div> | |
<h1>Select Reddit Sub</h1> | |
<div id="list"></div> |
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
<!DOCTYPE html> | |
<html dir="ltr" lang="en-US"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<meta http-equiv="Content-Language" content="en" /> | |
<title>Using a Content Delivery Network | Turbo 360</title> | |
<link rel="stylesheet" href="{{{cdn}}}/css/bootstrap.min.css"> |
NewerOlder