
Learn how to build a restful API from scratch using Node and Express, handle get, post, put, and delete requests, and connect a front end with Ajax and jQuery.
Create a node project and set up the main entry point with index.js, run node to see console output, and introduce basic variables, logging, and modules for future lessons.
Explore how to create and import modules in node, export values with module.exports, and require them to build a modular node project.
Set up a localhost http server in Node using the http module, listen on port 3000, respond with hello world, and inspect request and response headers.
Install and configure body-parser middleware for express to parse incoming form data and json, run before routes, and access the parsed content via req.body in route handlers.
Learn how middleware runs before routes, using next to continue processing, access request body, and log messages to validate user credentials in a rest api.
Build a login check simulation with an Express API, using a data object for admin, validating user and password via a post to login, and returning success or fail.
Set up a public folder and static index page using Express static, and define basic user routes (get, post, get by id, put, delete) for a REST API.
Add frontend JavaScript and jQuery to wire up a clickable button, collect username and password, and prepare sending data to the back end for a simulated database.
Learn to implement delete and put operations in a Node.js restful API by locating items by id, deleting with splice, and updating via request body in an in-memory data store.
This lecture demonstrates connecting front-end routes to a Node JS API, enabling delete and update actions via AJAX, using event delegation for dynamic user items and data attributes for IDs.
Learn how to implement a put workflow to edit list items, populate input fields from the selected item, and update data via ajax put with proper form submission.
Generate unique ids by using date and Math.floor in the data object, then update routes to work with your database, build this REST API, and improve the front end.
Refactor a Node.js rest api by creating a helper directory, exporting data from a module, and moving core functions to the helper to clean up index.js.
Enhance the user list interface with styling, inline inputs, and save, view, and delete actions via ajax, while hiding ids and keeping routes intact.
Set up a SQLite database for your node app with npm, create a test database and users table, and perform insert, delete, update, and select.
Bring the database into the front end by wiring routes to perform select, insert, update, and delete operations on the users table, with results rendered in index.js.
Perfect course for beginners to explore how to setup a Restful API! GET, POST, PUT, DELETE
This starter 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.
JavaScript experience is required - This course is designed for students who want to learn about node.js and how to create projects with Node. Its perfect for anyone who wants to practice coding by building 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.
All the resources are provided along with source code to get you started quickly
Technology used within the course:
Lessons cover the following:
Source code is included to get you started quickly
Step by step instruction, with friendly help always available in the Q&A section
Taught by an instructor with many years of web development experience, ready to help you learn
What are you waiting for join now and learn to setup your own RestFul API.
RESTful : Representational State Transfer (REST) When HTTP is used, as is most common, the operations available are GET, POST, PUT, DELETE, and other predefined CRUD HTTP methods.