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

06 start node coding

  • 1.
    Start Node Coding AhmedElbassel Email: elbassel.n13@gmail.com Skype: ahmed_elbassel
  • 2.
    Start Node Coding -HTTP Server - HTTP Server - reply with html file - URIs and Parameters.
  • 3.
    HTTP Server - Createhttp 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
  • 5.
  • 6.
    Exercise - You shouldwrite 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
  • 7.