Skip to content

Instantly share code, notes, and snippets.

@jeffersontpadua
Last active February 3, 2019 18:05
Show Gist options
  • Save jeffersontpadua/b22fea685a879321c36791c95cd3e89f to your computer and use it in GitHub Desktop.
Save jeffersontpadua/b22fea685a879321c36791c95cd3e89f to your computer and use it in GitHub Desktop.
Iniciando aplicação com Node.js, Express e Babel 7
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