-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from kalviumcommunity/backend
Setting up a project with package.json
- Loading branch information
Showing
3 changed files
with
436 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
const express = require("express"); | ||
|
||
const app = express(); | ||
const port = 4002; | ||
|
||
app.get("/", (req, res) => { | ||
res.json("Hello, World"); | ||
}); | ||
|
||
app.listen(port, () => { | ||
console.log(`Server is running on port ${port}`); | ||
}); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"name": "backend", | ||
"version": "1.0.0", | ||
"description": "Backend server of PromptVerse", | ||
"main": "index.js", | ||
"repository": "https://github.com/kalviumcommunity/PromptVerse", | ||
"author": "Rishi Ganesh", | ||
"license": "MIT", | ||
"private": false, | ||
"dependencies": { | ||
"express": "^4.18.2" | ||
} | ||
} |
Oops, something went wrong.