Skip to content

Instantly share code, notes, and snippets.

@Gary-Ascuy
Last active January 7, 2021 05:04
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 Gary-Ascuy/1d9bd24e395b86b8df16df698a4c4357 to your computer and use it in GitHub Desktop.
Save Gary-Ascuy/1d9bd24e395b86b8df16df698a4c4357 to your computer and use it in GitHub Desktop.
VSinder - Backend/app.js
const express = require('express')
const app = express()
const host = '0.0.0.0'
const port = 3666
app.get('/', (req, res) => {
res.send('API v1.0')
})
app.get('/me', (req, res) => {
const me = {
name: "Gary Ascuy",
role: "Senior Software Developer",
github: 'github.com/gary-ascuy',
bio: [
'Developer',
'Cat & Robotics Lover',
'Chef Amateur'
].join(','),
}
res.send(me)
})
app.listen(host, port, () => {
const url = `http://${host}:${port}`
const message = `Starting at ${url}`
console.log(message)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment