Last active
August 10, 2022 16:27
-
-
Save gokulhans/f9d9acfa67663dda92a9ff36c1793325 to your computer and use it in GitHub Desktop.
Create Node Server
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
const express = require('express') | |
const cors = require('cors') | |
const app = express() | |
app.use(express.json()) | |
app.use(cors()) | |
const PORT = 8080 | |
app.listen(PORT, () => { | |
console.log(`Server is running on PORT ${PORT}...`) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment