Last active
February 3, 2019 18:05
-
-
Save jeffersontpadua/b22fea685a879321c36791c95cd3e89f to your computer and use it in GitHub Desktop.
Iniciando aplicação com Node.js, Express e Babel 7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Express from 'express'; | |
export class Server { | |
app = Express(); | |
startup() { | |
this.setupRoutes(); | |
this.app.listen(3000, () => console.log("Listening...")); | |
} | |
setupRoutes() { | |
this.app.get("/teste", (req, res) => { | |
res.send("Funcionando :)"); | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment