Skip to content

Instantly share code, notes, and snippets.

@headStyleColorRed
Last active August 16, 2021 13:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save headStyleColorRed/d3729a0133cd84fe1109a2814d0d8604 to your computer and use it in GitHub Desktop.
Save headStyleColorRed/d3729a0133cd84fe1109a2814d0d8604 to your computer and use it in GitHub Desktop.
MEDIUM Missing configuration telegram part
const express = require("express")
const app = express();
const puerto = 9001;
const Cors = require("cors")
// Middlewares
app.use(Cors());
app.use(express.json());
app.use(express.urlencoded({ extended: false }))
// Open port
app.listen(puerto, () => console.log("Listening on port " + puerto))
// ++++++++++++++++ HTTP METHODS +++++++++++++++++++ //
app.get("/", (req, res) => {
res.send("Server is up and running! :D")
})
module.exports = app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment