Skip to content

Instantly share code, notes, and snippets.

asfo / index.js
Created August 19, 2019 21:15
index.js para el tutorial de Medium acerca de la seguridad de APIs con JWT
View index.js
const express = require('express'),
bodyParser = require('body-parser'),
jwt = require('jsonwebtoken'),
app = express();
const config = {
llave : "miclaveultrasecreta123*"
// 1
wh1tney /
Last active January 18, 2023 01:41
How to deploy a static website to Heroku


This is a quick tutorial explaining how to get a static website hosted on Heroku.

Why do this?

Heroku hosts apps on the internet, not static websites. To get it to run your static portfolio, personal blog, etc., you need to trick Heroku into thinking your website is a PHP app. This 6-step tutorial will teach you how.

Basic Assumptions