
Explore building a Node.js API with Express and MySQL, implementing persistence, and deploying via Docker to see it live.
Initialize a node project with npm init, set up a source folder with index.js as the entry, install express, mysql, cors, dotenv, ip, and pino with pino-pretty.
Set up a Node.js api server with express and env config, use process.env to determine the port (default 3000), and expose a root route that confirms the server is running.
Create a patient db and a patients table with fields such as id, first name, last name, email, and created_at timestamp, enforcing a primary key and a unique email constraint.
Configure a MySQL connection pool in a Node.js API by loading env vars, defining host, port, user, password, and database, and exporting the pool for efficient queries.
Create a simple response class for api replies, with a constructor that takes status code, message, and data, automatically adds a timestamp via new Date().toLocaleString(), and exports for frontend responses.
Learn to implement an HTTP response in a NodeJs API by constructing a response object and sending a 200 OK status, optionally including data such as a dummy patients list.
Configure Pino and Pino pretty for the node app, disable process id, enable color and timestamps, export a default logger, and replace console.log with structured logs.
Define a constant object of MySQL queries for the patients table, exported for reuse. Include select all with order by created date and limit 100, and insert, update, and delete.
Create a patient controller in a NodeJs API with MySQL and Docker, wiring it to config, response, logger, and query modules; implement centralized HTTP status codes for clean responses.
Implement a get patients function that logs request method and url. It queries the database for patients and returns a response with data or a 'no patients found' message.
Create a patient from the request body, insert into the database, and return the created patient; fetch a patient by id with not found and error handling.
Learn to update a patient record in a NodeJs API with MySQL by validating existence, merging request data, executing the update, and logging errors securely.
Learn how to delete a patient in a Node.js API with MySQL, checking affected rows for success, handling not found cases, and wiring routes and controller logic.
Configure Express routes for patient resources using an Express router, with get, post, put, and delete handlers, including dynamic id paths for individual patients.
Wire up express routes for a node api and mount patient routes under /patients with middleware. Dockerize the app to spin up the database and run with a single command.
Explore docker fundamentals and docker compose to run apps in isolated containers with all dependencies, enabling deployment and hosting on a single machine.
Define a Docker Compose service for a MySQL 8.0 master database, configure environment, volumes, port mappings, an init script, and a dedicated network to connect apps.
Test the docker compose setup, verify no errors, then connect to the mysql server on localhost:306, inspect patients db and patients table, and load configuration from the env file.
Start the dev environment, create and save a patient via the api, and verify CRUD operations get update and delete against a dockerized MySQL database.
Define and call a stored procedure to create a patient and return the newly inserted patient by ID, using delimiter handling, begin...end, and last_insert_id in MySQL.
Learn to set up a dockerized Node.js MySQL environment, create and call a stored procedure, and verify the returned patient data in the patient database.
Learn to dockerize a node.js api with a node alpine dockerfile, install dependencies, copy code, expose port 3000, and compose a node app service that depends on my school db.
Demonstrates dockerizing a Node.js API with Docker Compose, including environment variables, port mapping (3000 and 5000), and image building. Run containers, map volumes, and test the MySQL-backed app end-to-end.
In this course, you will learn and understand how to create a NodeJs back-end API that will connect to a MySQL database server. Then use Docker to dockerize the application. You will also deploy the API using AWS Cloud.
This course teaches how to use create an API from scratch. This course also dives into defining and creating API, exposing API Endpoints over HTTP, and handling HTTP Requests and File Upload through API Endpoints. It covers testing API Endpoints (using an HTTP client - Postman).
This course is short and focuses only building the API and integrating it with persistence using MySQL Database Server. If you would like to learn more and build a full stack application and see how of this in practice, and way much more, please refer to my other course on Udemy, JSON Web Token (JWT) with Spring Security And Angular.
In this course, you will learn and understand how to create a NodeJs back-end API that will connect to a MySQL database server. Then use Docker to dockerize the application. You will also deploy the API using AWS Cloud.
This course teaches how to use create an API from scratch. This course also dives into defining and creating API, exposing API Endpoints over HTTP, and handling HTTP Requests and File Upload through API Endpoints. It covers testing API Endpoints (using an HTTP client - Postman).
This course is short and focuses only building the API and integrating it with persistence using MySQL Database Server. If you would like to learn more and build a full stack application and see how of this in practice, and way much more, please refer to my other course on Udemy, JSON Web Token (JWT) with Spring Security And Angular.
In this course, you will learn and understand how to create a NodeJs back-end API that will connect to a MySQL database server. Then use Docker to dockerize the application. You will also deploy the API using AWS Cloud.
This course teaches how to use create an API from scratch. This course also dives into defining and creating API, exposing API Endpoints over HTTP, and handling HTTP Requests and File Upload through API Endpoints. It covers testing API Endpoints (using an HTTP client - Postman).
This course is short and focuses only building the API and integrating it with persistence using MySQL Database Server. If you would like to learn more and build a full stack application and see how of this in practice, and way much more, please refer to my other course on Udemy, JSON Web Token (JWT) with Spring Security And Angular.