-
Notifications
You must be signed in to change notification settings - Fork 0
suyogwaghere/node-express
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
# node-express Detail explanations mkdir projectname cd into that folder then install express into that folder using following command npm install express to run the program just type node app.js then create 2 files app.js index.html app.js : const express = require('express') const app = express() app.get('/', function(req, res){ res.sendFile(__dirname+"/index.html") }) app.listen(3000, function(){ console.log('Server is started on port 3000'); }) index.html file: normal html code
About
Details explanations
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published