SlideShare a Scribd company logo
Start Node Coding
Ahmed Elbassel
Email: elbassel.n13@gmail.com
Skype: ahmed_elbassel
Start Node Coding
- HTTP Server
- HTTP Server - reply with html file
- URIs and Parameters.
HTTP Server
- Create http server using http package:
HTTP Server - reply with html file
- Reply with HTML file, use fs package.
- For more about fs package: click here
URIs and Parameters
Exercise
- You should write an application that provide api to do the following four
operations:
- *, +, -, /
- Your Api should be as the following:
- localhost:3000/calc?num1=4&num2=9&oper=add|mul|sub|div
- Anything other than calc route should return an error message please use the right data.
- If operation other that the above four operation, return an error message displaying that only
four operations supported
Questions

More Related Content

Viewers also liked (13)

07 restful webservices design
07 restful webservices design07 restful webservices design
07 restful webservices design
Ahmed Elbassel
 
5 клас "Макетування" (тренувальні вправи)
5 клас "Макетування" (тренувальні вправи)5 клас "Макетування" (тренувальні вправи)
5 клас "Макетування" (тренувальні вправи)
Andy Levkovich
 
Airbnb Java Script style guide
Airbnb Java Script style guideAirbnb Java Script style guide
Airbnb Java Script style guide
Ahmed Elbassel
 
04_Node modules
04_Node modules04_Node modules
04_Node modules
Ahmed Elbassel
 
Laboratory Scale Steam Sterilizer Technical Data
Laboratory Scale Steam Sterilizer Technical DataLaboratory Scale Steam Sterilizer Technical Data
Laboratory Scale Steam Sterilizer Technical Data
Atlantic Technology Group, Inc.
 
WildOne Wildlife Rescue
WildOne Wildlife RescueWildOne Wildlife Rescue
WildOne Wildlife Rescue
Savvy Chi
 
2 dc orar es estar donde esté jesús
2 dc orar es estar donde esté jesús2 dc orar es estar donde esté jesús
2 dc orar es estar donde esté jesús
CIPE. El Carmelo
 
Clase castellano 4°-03-07-17_declamación de poemas
Clase castellano 4°-03-07-17_declamación de poemasClase castellano 4°-03-07-17_declamación de poemas
Clase castellano 4°-03-07-17_declamación de poemas
IETI AJC Olga Lucía Lloreda
 
Clase inglés 5°_03-07-17_romantic phrases
Clase inglés 5°_03-07-17_romantic phrasesClase inglés 5°_03-07-17_romantic phrases
Clase inglés 5°_03-07-17_romantic phrases
IETI AJC Olga Lucía Lloreda
 
automatic plant irrigation using aurdino and gsm technology
automatic plant irrigation using aurdino and gsm technologyautomatic plant irrigation using aurdino and gsm technology
automatic plant irrigation using aurdino and gsm technology
thamil arasan
 
Бренд школи №19
Бренд школи №19Бренд школи №19
Бренд школи №19
Tatyana Novomlinets
 
¿cómo está tu cuerpo?
¿cómo está tu cuerpo?¿cómo está tu cuerpo?
¿cómo está tu cuerpo?
Alejandra G
 
інтегрований урок з математики
інтегрований урок з математикиінтегрований урок з математики
інтегрований урок з математики
school
 
07 restful webservices design
07 restful webservices design07 restful webservices design
07 restful webservices design
Ahmed Elbassel
 
5 клас "Макетування" (тренувальні вправи)
5 клас "Макетування" (тренувальні вправи)5 клас "Макетування" (тренувальні вправи)
5 клас "Макетування" (тренувальні вправи)
Andy Levkovich
 
Airbnb Java Script style guide
Airbnb Java Script style guideAirbnb Java Script style guide
Airbnb Java Script style guide
Ahmed Elbassel
 
WildOne Wildlife Rescue
WildOne Wildlife RescueWildOne Wildlife Rescue
WildOne Wildlife Rescue
Savvy Chi
 
2 dc orar es estar donde esté jesús
2 dc orar es estar donde esté jesús2 dc orar es estar donde esté jesús
2 dc orar es estar donde esté jesús
CIPE. El Carmelo
 
Clase castellano 4°-03-07-17_declamación de poemas
Clase castellano 4°-03-07-17_declamación de poemasClase castellano 4°-03-07-17_declamación de poemas
Clase castellano 4°-03-07-17_declamación de poemas
IETI AJC Olga Lucía Lloreda
 
automatic plant irrigation using aurdino and gsm technology
automatic plant irrigation using aurdino and gsm technologyautomatic plant irrigation using aurdino and gsm technology
automatic plant irrigation using aurdino and gsm technology
thamil arasan
 
¿cómo está tu cuerpo?
¿cómo está tu cuerpo?¿cómo está tu cuerpo?
¿cómo está tu cuerpo?
Alejandra G
 
інтегрований урок з математики
інтегрований урок з математикиінтегрований урок з математики
інтегрований урок з математики
school
 

Similar to 06 start node coding (16)

Information on Basic Web Host Manager Setup
Information on Basic Web Host Manager SetupInformation on Basic Web Host Manager Setup
Information on Basic Web Host Manager Setup
HTS Hosting
 
Basic Web Host Manager Setup
Basic Web Host Manager SetupBasic Web Host Manager Setup
Basic Web Host Manager Setup
HTS Hosting
 
Project-make a public website server using raspberry pi
Project-make a public website server using raspberry piProject-make a public website server using raspberry pi
Project-make a public website server using raspberry pi
Fahim Hossain
 
IpSpoofing.ppt
IpSpoofing.pptIpSpoofing.ppt
IpSpoofing.ppt
UdayaSai4
 
Excel Based IP Functions
Excel Based IP FunctionsExcel Based IP Functions
Excel Based IP Functions
Rajiv Bhardwaj
 
How to add client computer into a domain using dhcp
How to add client computer into a domain using dhcpHow to add client computer into a domain using dhcp
How to add client computer into a domain using dhcp
Mac Picar
 
DEVNET-1001 Coding 101: How to Call REST APIs from a REST Client and Python
DEVNET-1001 Coding 101: How to Call REST APIs from a REST Client and PythonDEVNET-1001 Coding 101: How to Call REST APIs from a REST Client and Python
DEVNET-1001 Coding 101: How to Call REST APIs from a REST Client and Python
Cisco DevNet
 
Design Summit - RESTful API Overview - John Hardy
Design Summit - RESTful API Overview - John HardyDesign Summit - RESTful API Overview - John Hardy
Design Summit - RESTful API Overview - John Hardy
ManageIQ
 
Ok guys, I have a scenario hereProject ScopeThe project des.docx
Ok guys, I have a scenario hereProject ScopeThe project des.docxOk guys, I have a scenario hereProject ScopeThe project des.docx
Ok guys, I have a scenario hereProject ScopeThe project des.docx
dunhamadell
 
Configuring apache, php, my sql, ftp, ssl, ip tables phpmyadmin and server mo...
Configuring apache, php, my sql, ftp, ssl, ip tables phpmyadmin and server mo...Configuring apache, php, my sql, ftp, ssl, ip tables phpmyadmin and server mo...
Configuring apache, php, my sql, ftp, ssl, ip tables phpmyadmin and server mo...
Chanaka Lasantha
 
MMC Rest API - Servers
MMC Rest API - ServersMMC Rest API - Servers
MMC Rest API - Servers
Kiran Boddepalli
 
Its3 Drupal
Its3 DrupalIts3 Drupal
Its3 Drupal
guest954945a
 
Its3 Drupal
Its3 DrupalIts3 Drupal
Its3 Drupal
guest954945a
 
How To Deploy A Cloud Based Webserver in 5 minutes - LAMP
How To Deploy A Cloud Based Webserver in 5 minutes - LAMPHow To Deploy A Cloud Based Webserver in 5 minutes - LAMP
How To Deploy A Cloud Based Webserver in 5 minutes - LAMP
Matt Dunlap
 
Making own AMP stack with Homebrew on a Mac
Making own AMP stack with Homebrew on a MacMaking own AMP stack with Homebrew on a Mac
Making own AMP stack with Homebrew on a Mac
rkalnins
 
Configuration of Apache Web Server On CentOS 8
Configuration of Apache Web Server On CentOS 8Configuration of Apache Web Server On CentOS 8
Configuration of Apache Web Server On CentOS 8
Kaan Aslandağ
 
Information on Basic Web Host Manager Setup
Information on Basic Web Host Manager SetupInformation on Basic Web Host Manager Setup
Information on Basic Web Host Manager Setup
HTS Hosting
 
Basic Web Host Manager Setup
Basic Web Host Manager SetupBasic Web Host Manager Setup
Basic Web Host Manager Setup
HTS Hosting
 
Project-make a public website server using raspberry pi
Project-make a public website server using raspberry piProject-make a public website server using raspberry pi
Project-make a public website server using raspberry pi
Fahim Hossain
 
IpSpoofing.ppt
IpSpoofing.pptIpSpoofing.ppt
IpSpoofing.ppt
UdayaSai4
 
Excel Based IP Functions
Excel Based IP FunctionsExcel Based IP Functions
Excel Based IP Functions
Rajiv Bhardwaj
 
How to add client computer into a domain using dhcp
How to add client computer into a domain using dhcpHow to add client computer into a domain using dhcp
How to add client computer into a domain using dhcp
Mac Picar
 
DEVNET-1001 Coding 101: How to Call REST APIs from a REST Client and Python
DEVNET-1001 Coding 101: How to Call REST APIs from a REST Client and PythonDEVNET-1001 Coding 101: How to Call REST APIs from a REST Client and Python
DEVNET-1001 Coding 101: How to Call REST APIs from a REST Client and Python
Cisco DevNet
 
Design Summit - RESTful API Overview - John Hardy
Design Summit - RESTful API Overview - John HardyDesign Summit - RESTful API Overview - John Hardy
Design Summit - RESTful API Overview - John Hardy
ManageIQ
 
Ok guys, I have a scenario hereProject ScopeThe project des.docx
Ok guys, I have a scenario hereProject ScopeThe project des.docxOk guys, I have a scenario hereProject ScopeThe project des.docx
Ok guys, I have a scenario hereProject ScopeThe project des.docx
dunhamadell
 
Configuring apache, php, my sql, ftp, ssl, ip tables phpmyadmin and server mo...
Configuring apache, php, my sql, ftp, ssl, ip tables phpmyadmin and server mo...Configuring apache, php, my sql, ftp, ssl, ip tables phpmyadmin and server mo...
Configuring apache, php, my sql, ftp, ssl, ip tables phpmyadmin and server mo...
Chanaka Lasantha
 
How To Deploy A Cloud Based Webserver in 5 minutes - LAMP
How To Deploy A Cloud Based Webserver in 5 minutes - LAMPHow To Deploy A Cloud Based Webserver in 5 minutes - LAMP
How To Deploy A Cloud Based Webserver in 5 minutes - LAMP
Matt Dunlap
 
Making own AMP stack with Homebrew on a Mac
Making own AMP stack with Homebrew on a MacMaking own AMP stack with Homebrew on a Mac
Making own AMP stack with Homebrew on a Mac
rkalnins
 
Configuration of Apache Web Server On CentOS 8
Configuration of Apache Web Server On CentOS 8Configuration of Apache Web Server On CentOS 8
Configuration of Apache Web Server On CentOS 8
Kaan Aslandağ
 

More from Ahmed Elbassel (7)

13 mongoose
13 mongoose13 mongoose
13 mongoose
Ahmed Elbassel
 
12 mongo db_and_nodejs
12 mongo db_and_nodejs12 mongo db_and_nodejs
12 mongo db_and_nodejs
Ahmed Elbassel
 
11 schema design & crud
11 schema design & crud11 schema design & crud
11 schema design & crud
Ahmed Elbassel
 
10 mongo db
10 mongo db10 mongo db
10 mongo db
Ahmed Elbassel
 
03 json for java script
03 json for java script03 json for java script
03 json for java script
Ahmed Elbassel
 
02 Node introduction
02 Node introduction02 Node introduction
02 Node introduction
Ahmed Elbassel
 
Story of java
Story of javaStory of java
Story of java
Ahmed Elbassel
 

Recently uploaded (20)

IntroSlides-April-BuildWithAI-VertexAI.pdf
IntroSlides-April-BuildWithAI-VertexAI.pdfIntroSlides-April-BuildWithAI-VertexAI.pdf
IntroSlides-April-BuildWithAI-VertexAI.pdf
Luiz Carneiro
 
Introduction to FLUID MECHANICS & KINEMATICS
Introduction to FLUID MECHANICS &  KINEMATICSIntroduction to FLUID MECHANICS &  KINEMATICS
Introduction to FLUID MECHANICS & KINEMATICS
narayanaswamygdas
 
fluke dealers in bangalore..............
fluke dealers in bangalore..............fluke dealers in bangalore..............
fluke dealers in bangalore..............
Haresh Vaswani
 
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITYADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ijscai
 
Level 1-Safety.pptx Presentation of Electrical Safety
Level 1-Safety.pptx Presentation of Electrical SafetyLevel 1-Safety.pptx Presentation of Electrical Safety
Level 1-Safety.pptx Presentation of Electrical Safety
JoseAlbertoCariasDel
 
Process Parameter Optimization for Minimizing Springback in Cold Drawing Proc...
Process Parameter Optimization for Minimizing Springback in Cold Drawing Proc...Process Parameter Optimization for Minimizing Springback in Cold Drawing Proc...
Process Parameter Optimization for Minimizing Springback in Cold Drawing Proc...
Journal of Soft Computing in Civil Engineering
 
"Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G...
"Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G..."Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G...
"Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G...
Infopitaara
 
Smart_Storage_Systems_Production_Engineering.pptx
Smart_Storage_Systems_Production_Engineering.pptxSmart_Storage_Systems_Production_Engineering.pptx
Smart_Storage_Systems_Production_Engineering.pptx
rushikeshnavghare94
 
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E..."Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
Infopitaara
 
211421893-M-Tech-CIVIL-Structural-Engineering-pdf.pdf
211421893-M-Tech-CIVIL-Structural-Engineering-pdf.pdf211421893-M-Tech-CIVIL-Structural-Engineering-pdf.pdf
211421893-M-Tech-CIVIL-Structural-Engineering-pdf.pdf
inmishra17121973
 
ELectronics Boards & Product Testing_Shiju.pdf
ELectronics Boards & Product Testing_Shiju.pdfELectronics Boards & Product Testing_Shiju.pdf
ELectronics Boards & Product Testing_Shiju.pdf
Shiju Jacob
 
new ppt artificial intelligence historyyy
new ppt artificial intelligence historyyynew ppt artificial intelligence historyyy
new ppt artificial intelligence historyyy
PianoPianist
 
15th International Conference on Computer Science, Engineering and Applicatio...
15th International Conference on Computer Science, Engineering and Applicatio...15th International Conference on Computer Science, Engineering and Applicatio...
15th International Conference on Computer Science, Engineering and Applicatio...
IJCSES Journal
 
DT REPORT by Tech titan GROUP to introduce the subject design Thinking
DT REPORT by Tech titan GROUP to introduce the subject design ThinkingDT REPORT by Tech titan GROUP to introduce the subject design Thinking
DT REPORT by Tech titan GROUP to introduce the subject design Thinking
DhruvChotaliya2
 
Oil-gas_Unconventional oil and gass_reseviours.pdf
Oil-gas_Unconventional oil and gass_reseviours.pdfOil-gas_Unconventional oil and gass_reseviours.pdf
Oil-gas_Unconventional oil and gass_reseviours.pdf
M7md3li2
 
railway wheels, descaling after reheating and before forging
railway wheels, descaling after reheating and before forgingrailway wheels, descaling after reheating and before forging
railway wheels, descaling after reheating and before forging
Javad Kadkhodapour
 
Explainable-Artificial-Intelligence-XAI-A-Deep-Dive (1).pptx
Explainable-Artificial-Intelligence-XAI-A-Deep-Dive (1).pptxExplainable-Artificial-Intelligence-XAI-A-Deep-Dive (1).pptx
Explainable-Artificial-Intelligence-XAI-A-Deep-Dive (1).pptx
MahaveerVPandit
 
Introduction to Zoomlion Earthmoving.pptx
Introduction to Zoomlion Earthmoving.pptxIntroduction to Zoomlion Earthmoving.pptx
Introduction to Zoomlion Earthmoving.pptx
AS1920
 
Smart Storage Solutions.pptx for production engineering
Smart Storage Solutions.pptx for production engineeringSmart Storage Solutions.pptx for production engineering
Smart Storage Solutions.pptx for production engineering
rushikeshnavghare94
 
DSP and MV the Color image processing.ppt
DSP and MV the  Color image processing.pptDSP and MV the  Color image processing.ppt
DSP and MV the Color image processing.ppt
HafizAhamed8
 
IntroSlides-April-BuildWithAI-VertexAI.pdf
IntroSlides-April-BuildWithAI-VertexAI.pdfIntroSlides-April-BuildWithAI-VertexAI.pdf
IntroSlides-April-BuildWithAI-VertexAI.pdf
Luiz Carneiro
 
Introduction to FLUID MECHANICS & KINEMATICS
Introduction to FLUID MECHANICS &  KINEMATICSIntroduction to FLUID MECHANICS &  KINEMATICS
Introduction to FLUID MECHANICS & KINEMATICS
narayanaswamygdas
 
fluke dealers in bangalore..............
fluke dealers in bangalore..............fluke dealers in bangalore..............
fluke dealers in bangalore..............
Haresh Vaswani
 
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITYADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ijscai
 
Level 1-Safety.pptx Presentation of Electrical Safety
Level 1-Safety.pptx Presentation of Electrical SafetyLevel 1-Safety.pptx Presentation of Electrical Safety
Level 1-Safety.pptx Presentation of Electrical Safety
JoseAlbertoCariasDel
 
"Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G...
"Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G..."Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G...
"Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G...
Infopitaara
 
Smart_Storage_Systems_Production_Engineering.pptx
Smart_Storage_Systems_Production_Engineering.pptxSmart_Storage_Systems_Production_Engineering.pptx
Smart_Storage_Systems_Production_Engineering.pptx
rushikeshnavghare94
 
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E..."Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
Infopitaara
 
211421893-M-Tech-CIVIL-Structural-Engineering-pdf.pdf
211421893-M-Tech-CIVIL-Structural-Engineering-pdf.pdf211421893-M-Tech-CIVIL-Structural-Engineering-pdf.pdf
211421893-M-Tech-CIVIL-Structural-Engineering-pdf.pdf
inmishra17121973
 
ELectronics Boards & Product Testing_Shiju.pdf
ELectronics Boards & Product Testing_Shiju.pdfELectronics Boards & Product Testing_Shiju.pdf
ELectronics Boards & Product Testing_Shiju.pdf
Shiju Jacob
 
new ppt artificial intelligence historyyy
new ppt artificial intelligence historyyynew ppt artificial intelligence historyyy
new ppt artificial intelligence historyyy
PianoPianist
 
15th International Conference on Computer Science, Engineering and Applicatio...
15th International Conference on Computer Science, Engineering and Applicatio...15th International Conference on Computer Science, Engineering and Applicatio...
15th International Conference on Computer Science, Engineering and Applicatio...
IJCSES Journal
 
DT REPORT by Tech titan GROUP to introduce the subject design Thinking
DT REPORT by Tech titan GROUP to introduce the subject design ThinkingDT REPORT by Tech titan GROUP to introduce the subject design Thinking
DT REPORT by Tech titan GROUP to introduce the subject design Thinking
DhruvChotaliya2
 
Oil-gas_Unconventional oil and gass_reseviours.pdf
Oil-gas_Unconventional oil and gass_reseviours.pdfOil-gas_Unconventional oil and gass_reseviours.pdf
Oil-gas_Unconventional oil and gass_reseviours.pdf
M7md3li2
 
railway wheels, descaling after reheating and before forging
railway wheels, descaling after reheating and before forgingrailway wheels, descaling after reheating and before forging
railway wheels, descaling after reheating and before forging
Javad Kadkhodapour
 
Explainable-Artificial-Intelligence-XAI-A-Deep-Dive (1).pptx
Explainable-Artificial-Intelligence-XAI-A-Deep-Dive (1).pptxExplainable-Artificial-Intelligence-XAI-A-Deep-Dive (1).pptx
Explainable-Artificial-Intelligence-XAI-A-Deep-Dive (1).pptx
MahaveerVPandit
 
Introduction to Zoomlion Earthmoving.pptx
Introduction to Zoomlion Earthmoving.pptxIntroduction to Zoomlion Earthmoving.pptx
Introduction to Zoomlion Earthmoving.pptx
AS1920
 
Smart Storage Solutions.pptx for production engineering
Smart Storage Solutions.pptx for production engineeringSmart Storage Solutions.pptx for production engineering
Smart Storage Solutions.pptx for production engineering
rushikeshnavghare94
 
DSP and MV the Color image processing.ppt
DSP and MV the  Color image processing.pptDSP and MV the  Color image processing.ppt
DSP and MV the Color image processing.ppt
HafizAhamed8
 

06 start node coding

  • 1. Start Node Coding Ahmed Elbassel Email: [email protected] Skype: ahmed_elbassel
  • 2. Start Node Coding - HTTP Server - HTTP Server - reply with html file - URIs and Parameters.
  • 3. HTTP Server - Create http server using http package:
  • 4. HTTP Server - reply with html file - Reply with HTML file, use fs package. - For more about fs package: click here
  • 6. Exercise - You should write an application that provide api to do the following four operations: - *, +, -, / - Your Api should be as the following: - localhost:3000/calc?num1=4&num2=9&oper=add|mul|sub|div - Anything other than calc route should return an error message please use the right data. - If operation other that the above four operation, return an error message displaying that only four operations supported