basic stuff
This commit is contained in:
parent
8c4928109a
commit
2ca63f06b4
11 changed files with 1397 additions and 0 deletions
16
index.js
Normal file
16
index.js
Normal file
|
@ -0,0 +1,16 @@
|
|||
import express from "express";
|
||||
const app = express()
|
||||
const port = process.env.port || 3000;
|
||||
|
||||
app.use('/static', express.static('./static'),)
|
||||
|
||||
app.set('view engine', 'ejs');
|
||||
app.set('views', './views');
|
||||
|
||||
app.get('/', (req, res) => {
|
||||
res.render('index');
|
||||
})
|
||||
|
||||
app.listen(port, () => {
|
||||
console.log(`App listening on port ${port}`)
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue