A ready made Node JS back end code for easier deployment process.
Requirements:
- Get Node JS from : https://nodejs.org/en/download/
- Create a new folder/directory.
- Open CMD.exe and CD to the new folder.
- npm install express.
- npm install body-parser.
Step by step:
- Download all file from this repo and store it in the newly created folder.
- Open CMD.exe and CD to the new folder.
- Run the command >> node basicServer.js
- Access the Node JS webserver from browser through localhost or 127.0.0.1.
- Aaaand we are done.
For Accessing Home Page
input localhost in the browser url bar.
Get Request
input localhost/testget/ in the browser url bar.
Post Request
this will have to be requested from the index.html form request(method="POST").
Always be creative with the usage.