Skip to content

marellanoc/nodejs_simple_server

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

NodeJS simple server

This example has trhee endpoints:

- /suma which returns the addition of all the given parameters. If one of them are not numeric returns 400 error.
- /multiplicacion which returns the multiplication of all the given parameters. If one of them are not numeric returns 400 error.
- /fibonacci where the input value is the index of the fibonacci sequence and returns the value of the given numer. Returns 400 if not numeric parameter is given.

Server run at 8080 port with:

node node_example.js

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%