Skip to content

Commit

Permalink
Merge pull request #7 from kalviumcommunity/backend
Browse files Browse the repository at this point in the history
Setting up a project with package.json
  • Loading branch information
leovaldez08 authored May 17, 2023
2 parents 3baa0b7 + 4dea0fd commit f377f90
Show file tree
Hide file tree
Showing 3 changed files with 436 additions and 0 deletions.
12 changes: 12 additions & 0 deletions BackEnd/Server/server.js
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}`);
});
13 changes: 13 additions & 0 deletions BackEnd/package.json
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"
}
}
Loading

0 comments on commit f377f90

Please sign in to comment.