Skip to content

Simple webserver sending HTTP string from data stored in a '.txt' file

Notifications You must be signed in to change notification settings

MaxKei/Simple-Nodejs-Webserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple-Nodejs-Webserver


Very simple webserver(nodejs) that sends a HTTP string from a stored file to a client(android studio).
#### In terminal
- To start server, write: node app.js
- To stop server, type: CTRL+C
Change the path to the text file in fs.readFile('C:file-location/device_count.txt')
Required library: Nodejs and graceful-fs
Inspired from: https://nodejs.org/api/synopsis.html

About

Simple webserver sending HTTP string from data stored in a '.txt' file

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages