Skip to content

Commit

Permalink
clase 11
Browse files Browse the repository at this point in the history
  • Loading branch information
andreybejarano committed Jun 22, 2022
1 parent ae54bf9 commit 25d71e0
Show file tree
Hide file tree
Showing 10 changed files with 3,396 additions and 0 deletions.
15 changes: 15 additions & 0 deletions clase11/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
const express = require('express');
const path = require('path');

const app = express();

const pathPublic = path.resolve(__dirname, './public');
app.use('/static', express.static(pathPublic));

app.get('/', (req,res)=>{
res.sendFile(__dirname + '/views/home.html');
});

app.listen(3000, ()=>{
console.log('Servidor funcionando en: http://localhost:3000');
});
Loading

0 comments on commit 25d71e0

Please sign in to comment.