
Explore building a local database with node and sequel light, using express and ajax to create, read, and insert user data from the front end to the back end.
Set up your development environment by configuring the terminal on Windows or Mac, using Cmder or the native terminal. Prepare to build a node sqlite local database in upcoming lessons.
Create the core app.js file, verify node and npm are installed, and use the terminal and editor to navigate directories, install tools, and prepare for the upcoming lessons.
Install express using npm to set up a local host with node, create and manage a package.json, and optionally install express globally with npm install -g.
Learn to set up a local node server using express, require the package, create an app, define routes, and start listening on a port to serve ready messages.
Learn to use nodemon to automatically restart a node server during development, installing globally with npm and sudo, and running it to monitor app.js for changes.
Install the sqlite3 package with npm to set up a local sqlite database in node, create a users table with id, first, last, email, and password, and run queries.
Create an insert.js file, connect to the sqlite3 database, and execute an insert into the users table with email and password, logging the inserted id or any errors.
Create a reusable database module in db.js and export it with module.exports. Require the module in your node app to access the database and run insert to verify it works.
Create a query to select all from the users table, reuse the existing database object, execute the query, handle errors, and iterate over results with forEach to log each row.
List all users on a web page through an Express route /users and return a JSON array of rows from the users table.
Define a get route to fetch a user by id in a node local sqlite setup, using a parameterized select where id equals and returning a single row.
Build a frontend form that submits data to a Node backend using Ajax, parse the request with body-parser, and post to a route to insert into the database.
Create a user form with first, last, email, and password fields, submit via ajax using fetch to an express backend, and save the data to a local sqlite database.
Add a new user by sending front-end data via Ajax to a Node backend, parse the body, and insert first name, last name, email, and password into SQLite users.
Build a local node app with sqlite database, exposing routes to create, retrieve by id, and list all users, while handling form submissions, json responses, and console logging.
Are you looking for how to setup a local database using node - this is the course for you.
Easy step by step instructions on how to use node to install packages and setup a local SQLite database to use for your web applications. See how easy it can be to get data and add data to the database. - Please note that there are prerequisites to the course - JavaSCript - HTML and CSS
Source Code is included to get you started quickly
Step by step learning - starting with the basics and moving through to combining fundamentals and writing code.
Bonus - 25 page downloadable resource and course guide included. With source code, useful code snippets and resources.
Course covers
setup of express to run local machine on your computer
download and setup of SQLite database
useful packages like nodemon and MD5
inserting data to your local database
query database for results
setup of paths for files
use of body parser to get post data
submitting of form data to database
setup of basic app to interact with database
HTML,CSS JavaScript knowledge is essential as scope of this course is all NodeJS focused.
Step by step learning with all steps included.
Along with friendly support in the Q&A to help you learn and answer any questions you may have.
Try it now you have nothing to lose, comes with a 30 day money back guarantee.
Start coding with Node JS today!!!!!