repl.it
@jajoosam/

quote-scraper-starter

Express

Quotes scraped in just a few lines of js!

fork
loading
Files
  • index.js
  • quote.pug
  • Packager files
  • package-lock.json
  • package.json
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
const express = require('express');
const app = express();
var x = require('x-ray')();

app.set('view engine', 'pug');
app.set('views', __dirname);

app.get('/', (req, res) => {

	res.send("Start scraping 🤖")

});

app.listen(3000, () => console.log('server started'));