repl.it
@jajoosam/

tyni-starter

Express

Start building your own URL shortener

fork
loading
Files
  • index.js
  • static
  • package.json
index.js
1
2
3
4
5
6
7
8
9
10
11
12
// Express 🌐
const express = require('express');
const app = express();
app.use(express.static('static'))

// Database 🗃️
var jsonstore = require('jsonstore.io') 
let db = new jsonstore(process.env.KEY)


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