A RESTful API Node Exercise for Beginners JavaScript and JQuery [Video]
Learn |
|
---|---|
About |
When building RESTful services, it is really important to choose the right framework. Node.js, with its asynchronous, event-driven architecture, is exactly the right choice for building RESTful APIs. Weβll explore how the terminal can be used to set up a backend server using Node.js. Using the command line interface, weβll navigate and setup folders. After a brief introduction with examples of using NodeJS, weβll explore Node modules and how they work into your main app file. Then, weβll learn how to set up an HTTP server using node ready for localhost. Going forward weβll explore getting file content and reading it as data. Then, weβll power up your node application with Express and Nodemon. Weβll use Body Parser to get post data and find out how Middleware app use works. Then, apply logic with a conditional statement to create a login check and set up our application for static frontend files index.html. Getting back to the frontend with JavaScript and HTML. Weβll bring both together for requests and responses to the server and webpage. Further, weβll set up our routes for a RESTful API, GET, POST, PUT and DELETE. Weβll use these data to output to our page. In conclusion, weβll refactor the codes with a helper file and Update with adding an SQLite Database to hold data. Style and ApproachThis course demonstrates how to setup a Restful API from scratch. Using just your local computer you can follow the step by step lessons to setup your own local server and run JavaScript code. |
Features |
|
Course Length | 2 hours and 51 minutes |
ISBN | 9781789619959 |
Date Of Publication | 16 Aug 2018 |