SMERTH
Full-stack Web Developer
building with
100%
re-cycled electrons.
Menu
Hello
Projects
Notes
Screenshots
About
Timeline
Website with NodeJS ExpressJS and SocketIO
Notebook by Smerth
Chapter 1
Create a Server with NodeJS
1.1
Optional Starting Points
1.2
Create Basic Structure
1.3
Setup Git
1.4
Require HTTP Module
1.5
Create server
1.6
Write response
1.7
Listen
1.8
Run app
1.9
Serve HTML
1.10
Commit changes
Chapter 2
Create a Server with Express
2.1
ExpressJS Reference
2.2
Install Express
2.3
Require Express
2.4
Handle a request to the root route
2.5
Listen for a request
Chapter 3
Serve JSON data
3.1
Add data folder
3.2
Add a JSON File
3.3
Require JSON Files
3.4
User Defined Port Option
3.5
Modify server listening function
3.6
Specify a Port During Run-time
3.7
Respond with JSON data
3.8
Commit changes