Skip to content

Commit

Permalink
clas 17
Browse files Browse the repository at this point in the history
  • Loading branch information
andreybejarano committed Jul 13, 2022
1 parent 56eb1ac commit 1af7bff
Show file tree
Hide file tree
Showing 14 changed files with 2,379 additions and 0 deletions.
1 change: 1 addition & 0 deletions clase17/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
20 changes: 20 additions & 0 deletions clase17/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
const express = require('express');
const app = express();
app.use(express.static('public'));

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

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

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

const port = process.env.PORT || 3000;
app.listen(port, () => {
console.log('Servidor funcionando en http://localhost:' + port);
});
Loading

0 comments on commit 1af7bff

Please sign in to comment.