REST API management with nodeJS
-
You need to install nodejs and its package manager npm.
-
Go to the application folder and open a terminal.
-
Install the application dependencies with the next command:
npm install
-
Execute the next command in the terminal.
npm start
-
Access using the following url: http://localhost:3000
-
Access the user api at: http://localhost:3000/api/users
-
Access the movies api at: http://localhost:3000/api/movies
-
Update or Delete the user api at: http://localhost:3000/api/users/id (replacing id by the number).