A RESTful API Node Exercise for Beginners JavaScript and JQuery [Video]

More Information
  • Learn to setup and use NodeJS localhost
  • Add a SQLite database to a local project
  • Setup a simple Restful API

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 Approach

This 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.

  • How to create projects with Node.
  • We’ll build out a simple web application.
  • Learn everything you need to setup a localhost, resources to work with node, setup a SQLite database, setup routes for CRUD and a whole lot more.
Course Length 2 hours and 51 minutes
ISBN 9781789619959
Date Of Publication 16 Aug 2018


Laurence Svekis

Laurence Svekis is an instructor. He has 18+ years' work experience in web development, providing smart digital solutions online for both small and enterprise level businesses. An experienced web application developer, he has worked on multiple enterprise-level applications, hundreds of websites and business solutions, and many unique and innovative web applications. His web application development areas of expertise include HTML, CSS, JavaScript, JQuery, Bootstrap, PHP, and MySQL—in short, anything to do with web creation and digital experience. He is passionate about everything to do with web application development and programming to online marketing with a strong focus on social media and SEO.