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