Simple API using NodeJS, Express and MariaDB

  Рет қаралды 18,305

Techedemic

Techedemic

3 жыл бұрын

A simple, hands-on video to show you how to use NodeJS, Express and MariaDB together.
Code can be found here -github.com/techedemic/node_ex...

Пікірлер: 31
@gelsonmatavela
@gelsonmatavela 10 ай бұрын
Please, more videoss like that.... You're verry good coder, ... One love from Mozambique 🇲🇿
@fresh218
@fresh218 3 жыл бұрын
Your english pronunciation is fine as it is, I understood everything perfectly!
@Faskosu
@Faskosu 2 жыл бұрын
Awesome video, I'm not a native English speaker and I could understand everything, also, loved the organic troubleshooting process, made me feel a lot better about my programming and not getting everything first try haha
@techedemic
@techedemic 2 жыл бұрын
Yeah the false pretence that everything "just works" is what sometimes puts people off because they don't get it right as easily as some videos make it look. Glad you liked it :)
@wmm007
@wmm007 3 жыл бұрын
Thank you! This is one of the best tutorials on KZfaq that I have encountered across multiple programming languages. Excellent comprehensive presentation style in my opinion 👍 👍 Well done.
@techedemic
@techedemic 3 жыл бұрын
Thanks man! Comments like these means a lot and inspires me to make more...
@quickhand9246
@quickhand9246 Жыл бұрын
Hi there! Just went through this video thank you for the very thorough tutorial. Just FYI the Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client is caused by trying to set a response status header after it is already sent. (ex. res.status(xxx) is used twice in the same function). Well done anyway!
@techedemic
@techedemic Жыл бұрын
Thanks for the info!
@19TopGun93
@19TopGun93 3 жыл бұрын
Very very thank you for this video. This was my third tutorial to this thema. And now it runs as expected for my usage. Now I understand how I have to write my functions :) Thanks a lot
@techedemic
@techedemic 3 жыл бұрын
It's a pleasure! I'll be making many more along the same lines... so remember to hit that 'subscribe' button and you'll be notified when they are uploaded!
@user-cj2ss7sn8e
@user-cj2ss7sn8e 2 жыл бұрын
Great and thank you from Morocco
@tuncaysonmez7734
@tuncaysonmez7734 Ай бұрын
great implementation.
@noname-dl4qu
@noname-dl4qu Жыл бұрын
Your Video helped me very much and i like how you explained everything! i hope you keep doing Videos like this bec. i can follow the steps better as if i'm reading it! i will try this with sequelize, but if this does not work i'm gona stick to your method. oh i cant write down my relief your video triggered in me
@techedemic
@techedemic Жыл бұрын
Glad you liked it! I'm working on something new.... out soon 😉
@sushantkumar3861
@sushantkumar3861 3 жыл бұрын
I am very helpful by this video... Thanks a lot... Please upload more for our learning
@techedemic
@techedemic 3 жыл бұрын
Glad I could help you. What topic would you be interested in? Anything specific?
@Kank2888u
@Kank2888u 2 жыл бұрын
This was a very well done tutorial. Thanks. I was also stuck when the .env file was read :/. Took some time but managed to figure it out.
@brunoe6604
@brunoe6604 Жыл бұрын
Thank you!!!
@actuallyisjoha
@actuallyisjoha Жыл бұрын
Thanks, helped me a lot!
@techedemic
@techedemic Жыл бұрын
Glad it helped!
@muhammadsuleman7281
@muhammadsuleman7281 Жыл бұрын
love you sir
@brianhayes1105
@brianhayes1105 3 жыл бұрын
Very Nice! I'm a beginner and just starting out with the essentials of Javascript, NodeJS, and SQL databases like MariaDB and PostgreSQL. Your tutorial was a very nice introduction to querying and creating a basic database using NodeJS, ExpressJS, and MariaDB. It occurred to me that in production your .env-local has your database password in plain text. Is there a simple way to encrypt this file so that it requires a password to open it? I'm also running linux, but am relatively new to it and don't know the basics of this. Again, thank you for a fantastic tutorial!
@HendriSchoeman
@HendriSchoeman 3 жыл бұрын
Remember, the idea is not to use the '.env-local' method in production. In production, these values should be passed via the command line as ENVIRONMENT VARIABLES. As such, the values should come from the environment. There are many ways to achieve this. For the sake of this video and for local development, storing these values in clear text should not be an issue. Also, don't push the `.env-local` file to git. I did it in this case to give you full access to the source coude after the fact but it's not good practice to do so in 'real life' You just gave my an idea for a topic for my next video :).. "Environment Variables in Node"
@IsusVonBier
@IsusVonBier 2 жыл бұрын
I'm getting "Do not know how to serialize a BigInt" response from post on register. Pasted your code from github just in case, same thing. Can't figure out why, even tried with 'body-parser'. Any ideas?
@Dm4hero
@Dm4hero 2 жыл бұрын
It's because it's receveing something that cannot parse into a json. If you don't care about the view of the response you can use res.status(200) without .json(....)
@gillesmcdonald5299
@gillesmcdonald5299 3 жыл бұрын
Nice vidéo.. Please what theme and plugins you use for your VScode..? Thanks
@techedemic
@techedemic 3 жыл бұрын
Theme is marketplace.visualstudio.com/items?itemName=wesbos.theme-cobalt2 Plugins... ooph..I use a lot, but the ones I cannot live without include:"ESLint", "Live Share", "Prettier"
@gillesmcdonald5299
@gillesmcdonald5299 3 жыл бұрын
@@techedemic perfect thanks
@tastypatrick2903
@tastypatrick2903 2 жыл бұрын
What exactly do you use Express for? Edit: All I know is for API endpoints
@techedemic
@techedemic 2 жыл бұрын
Express is a framework for handling http(s) based requests. In it's simplest form, it handles the typical HTTP GET, POST, PUT, DELETE methods for you, but it supports middleware which means there is an vast array of utilities you can include as part of your express setup. Things like PassportJS (for authentication) is an example of a middleware library you can include with ExpressJS. Yes, node does have http/s functionality baked in, but Express is more comprehensive functionality wise and simplifies things tremendously. Other frameworks similar to express include Koa. I hope this answers your question?
@josuer4675
@josuer4675 8 ай бұрын
28:00
How To Use TypeScript With Express & Node
17:05
Colt Steele
Рет қаралды 67 М.
Why The Windows Phone Failed
24:08
Apple Explained
Рет қаралды 229 М.
Survive 100 Days In Nuclear Bunker, Win $500,000
32:21
MrBeast
Рет қаралды 98 МЛН
CHOCKY MILK.. 🤣 #shorts
00:20
Savage Vlogs
Рет қаралды 13 МЛН
小蚂蚁被感动了!火影忍者 #佐助 #家庭
00:54
火影忍者一家
Рет қаралды 30 МЛН
How to build a REST API with Node js & Express
58:40
Programming with Mosh
Рет қаралды 1,7 МЛН
Build a Rest Api with NodeJS (JavaScript), Express, and PostgreSQL
1:07:53
How to Build a REST API with Node JS and Express
31:34
dcode
Рет қаралды 53 М.
The Story of Next.js
12:13
uidotdev
Рет қаралды 560 М.
Build a CRUD API with TypeScript, Express, MongoDB, Zod and Jest
1:38:56
"The Life & Death of htmx" by Alexander Petros at Big Sky Dev Con 2024
23:01
Montana Programmers
Рет қаралды 43 М.
Build a CRUD API with Docker Node.JS Express.JS & PostgreSQL
26:02
JWT Authentication | Node JS and Express tutorials for Beginners
1:00:03
Build a REST API with Node.js, Express, TypeScript, MongoDB & Zod
2:09:19
Build a REST API with Node JS and Express | CRUD API Tutorial
1:01:16
JavaScript Mastery
Рет қаралды 520 М.
Ускоряем ваш TV🚀
0:44
ARTEM_CHIBA
Рет қаралды 196 М.