Simple API call to CoinMarketCap for the USD price of DIVI.
npm i --save request request-promise lodash
0x4a86bECCC2f7d1d9bfd0Fd66b6CF3A9b802804F6 |
Verifying my Blockstack ID is secured with the address 1PkhonJWSLg2mMwtKnGcKr94LDXU5EMyhm https://explorer.blockstack.org/address/1PkhonJWSLg2mMwtKnGcKr94LDXU5EMyhm |
const | |
express = require('express'), | |
exphbs = require('express-handlebars'), | |
bodyParser = require('body-parser'), | |
path = require('path'), | |
app = express(), | |
routes = require('./routing/htmlRoutes'), | |
port = process.env.PORT || 3200; | |
app.use(bodyParser.json()); |
body { background: ##2f3136; color: #dcddde; } | |
a { color: #949494; } | |
a:link, a:visited { color: #949494; } | |
a:hover, a:active, a:focus { color: #c7c7c7; } | |
hr { border-bottom: 1px solid #424242; border-top: 1px solid #222; } |
const express = require('express') | |
const mongoose = require('mongoose') | |
const exphbs = require('express-handlebars') | |
const bodyParser= require('body-parser') | |
const path = require('path') | |
const PORT = process.env.PORT || 1279 | |
const app = express() |
This guide assumes that you already have some of the basics handled.
SSH
nano
NOTE: all items marked in bold are boilerplate and should be replaced with your own values.
You may want to increase the max upload size on your WordPress installation in order to upload a custom theme or larger media files.
Note: This will not work on shared hosting plans. This workaround is only for self-hosted WordPress installations.
From your server, access the php.ini
file under your PHP installation directory.
sudo nano /etc/php/<php_version>/apache2/php.ini
var aws = require('aws-sdk'); | |
var ddb = new aws.DynamoDB({apiVersion: '2012-10-08'}); | |
exports.handler = async (event, context) => { | |
console.log(event); | |
let date = new Date(); | |
const tableName = process.env.TABLE_NAME; | |
const region = process.env.REGION; |
{ | |
"userName": "johnnysmith", | |
"request": { | |
"userAttributes": { | |
"email": "exampleuser@example.com", | |
"email_verified": true, | |
"name": "Johnny Smith", | |
"sub": "abcdevfefe-1232132-cofeve" | |
} | |
}, |