From b0fde58acf99f559d41d96c02ce4e33ed562e479 Mon Sep 17 00:00:00 2001 From: Abhee Hudani Date: Sat, 17 Apr 2021 10:54:18 +0530 Subject: [PATCH] Express Hello World Server Created --- index.js | 11 +++++++++++ package.json | 19 +++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 index.js create mode 100644 package.json diff --git a/index.js b/index.js new file mode 100644 index 0000000..14356c1 --- /dev/null +++ b/index.js @@ -0,0 +1,11 @@ +const express = require('express') +const app = express() +const port = 3000 + +app.get('/', (req, res) => { + res.send('Hello World!') +}) + +app.listen(port, () => { + console.log(`Example app listening at http://localhost:${port}`) +}) diff --git a/package.json b/package.json new file mode 100644 index 0000000..1f216a6 --- /dev/null +++ b/package.json @@ -0,0 +1,19 @@ +{ + "name": "simplesampleproject", + "version": "1.0.0", + "description": "This is a sample project made for the purpose of demonstrating git, a version control system, and GitHub, an online git service provider.", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/GIT-GitHub-Club/simpleSampleProject.git" + }, + "author": "", + "license": "ISC", + "bugs": { + "url": "https://github.com/GIT-GitHub-Club/simpleSampleProject/issues" + }, + "homepage": "https://github.com/GIT-GitHub-Club/simpleSampleProject#readme" +}