Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aula #14 - Express #23

Open
CunhaSale opened this issue Sep 23, 2017 · 2 comments
Open

Aula #14 - Express #23

CunhaSale opened this issue Sep 23, 2017 · 2 comments

Comments

@CunhaSale
Copy link

CunhaSale commented Sep 23, 2017

Alguém poderia disponibilizar a conf do express para subir a app? Rodrigo usou a porta 8000 na aula

@CunhaSale CunhaSale changed the title Config Express - Aula #14 Aula #14 Sep 24, 2017
@CunhaSale CunhaSale changed the title Aula #14 Aula #14 - Express/RESOLVIDO Sep 24, 2017
@CunhaSale CunhaSale changed the title Aula #14 - Express/RESOLVIDO Aula #14 - Express Sep 24, 2017
@CunhaSale CunhaSale reopened this Sep 26, 2017
@CunhaSale
Copy link
Author

var express = require('express');
var app = express();

//--public
// --css
// --js
// --view
app.use(express.static('public'));

app.get('/', function(req, res) {
res.sendFile(__dirname + '/index.html');
});

app.listen(8000, function () {
console.log('Example app listening on port 8000!');
});

Repository owner deleted a comment from coolkid2541y Mar 19, 2019
@elytra-dev
Copy link

Ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants