Last active
November 12, 2020 10:12
-
-
Save TRahulSam1997/9c122143448a1cfde2473287f2e46dad to your computer and use it in GitHub Desktop.
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
// Require express and body-parser | |
const express = require("express"); | |
const bodyParser = require("body-parser"); | |
const delve = require('dlv'); | |
const axios = require('axios'); | |
const FormData = require('form-data'); | |
// Initialize express and define a port | |
const app = express(); | |
const port = process.env.PORT || 8080; | |
// Tell express to use body-parser's JSON parsing | |
app.use(bodyParser.json()); | |
// Start express on the defined port | |
app.listen(port, () => console.log(`Listening on ${port}...`)); | |
app.get("/", (req, res) => { | |
res.send(`"Above all, don't lie to yourself. The man who lies to himself and listens to his own lie comes to a point that he cannot distinguish the truth within him, or around him, and so loses all respect for himself and for others. And having no respect he ceases to love." ― Fyodor Dostoevsky, The Brothers Karamazov`); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment