Answers for "how to set up an express api nodejs"


how to set up an express api nodejs

const express = require('express')

const app = express() 

app.get('/', (req, res, next) => {
      message: 'This is my JSON api'

app.listen(your-port-here, () => {
	console.log(`listening on http://localhost:${the-port-goes-here}`)

WombleWoo7547 @
Posted by: Guest on May-27-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language