MaxKei/Simple-Nodejs-Webserver
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
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