Skip to content

Commit

Permalink
clase 13
Browse files Browse the repository at this point in the history
  • Loading branch information
andreybejarano committed Jun 29, 2022
1 parent 7db5434 commit 4521f8a
Show file tree
Hide file tree
Showing 11 changed files with 3,782 additions and 0 deletions.
15 changes: 15 additions & 0 deletions clase13/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(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 4521f8a

Please sign in to comment.