Node.js, Express & MySQL Tutorial - Build a Simple FullStack App

Поделиться
HTML-код
  • Опубликовано: 21 янв 2025

Комментарии • 370

  • @scottparrish7244
    @scottparrish7244 2 года назад +32

    This is exactly what I've been looking for. It's more than 2 years old, but still answered some questions I had. Very well explained, easy to follow and extremely useful and educational.

  • @johncowen5251
    @johncowen5251 11 часов назад

    Thank you for making this! Just what I needed to start me off with the understanding of how the various pieces fit together and then giving a worked example I can follow along with. I love the concise clear explanations, and the pacing is perfect

  • @Bayo106
    @Bayo106 3 года назад +12

    Theres a lot to learn from this. Thank you so much.
    Finally I know how to use a database with javascript.
    What I need to know how is making profiles so that the database has it's use
    so that unique users of a website have slightly different experience

  • @xavierhernandez8176
    @xavierhernandez8176 3 года назад +9

    wow! i've bought a bunch of udemy courses and watched trillions of tutorials.
    this is the first time i really felt like i've learned something that takes me one step further to being a developer

  • @mcloughman
    @mcloughman 3 года назад +4

    Thank you so much. It's nice to be able to put something together from start to finish. It's so helpful to actually connect to a database. This should be a springboard to bigger and better.

    • @NsquaredCoding
      @NsquaredCoding  3 года назад +1

      You're welcome! I'm glad it was helpful!

  • @BillkerPlus
    @BillkerPlus 4 года назад +12

    we need more apps like this , thank you man ♥

    • @NsquaredCoding
      @NsquaredCoding  4 года назад +4

      Absolutely I will create more tutorials revolving about full stack web development.

    • @mydiscord8667
      @mydiscord8667 4 года назад

      I was hoping adding React Redux to this would have made it a hit

  • @Dylan-cm1br
    @Dylan-cm1br 4 года назад +12

    This tutorial was extremely interesting and helpful. By far the best explanation of how to use mySQL with Node Js. Thank you very much! :)

  • @SylvainBilhaud
    @SylvainBilhaud Год назад

    don't hesitate to make more of this. really good, and easy to understand.

    • @NsquaredCoding
      @NsquaredCoding  Год назад

      I’m open to suggestions if you want to see a video on something specific.

  • @BekBrace
    @BekBrace 4 года назад +2

    You deserve more attention than all those of 300k sub channel owners - thank you for this tutorial

    • @NsquaredCoding
      @NsquaredCoding  4 года назад +1

      Wow I really appreciate that! Thank you

  • @Trevador696
    @Trevador696 2 года назад +1

    been searching for this for over a week, thank you very much

  • @lorenzowang7933
    @lorenzowang7933 3 года назад +2

    Great tutorial, addressed my needs directly without a drop of wasted time.

  • @aliimranadil2
    @aliimranadil2 3 года назад

    Bole to...jhkas...... converting .then to....async await.... loving it ❤️

  • @byronkenoly
    @byronkenoly Год назад

    best tutorial on youtube hands down

  • @sanchitrajwansh3533
    @sanchitrajwansh3533 3 года назад +1

    my console.log(response) at 34:06 is not printing the empty array in console.. I have written same code.. please help me out

  • @eli9994L
    @eli9994L 10 месяцев назад

    18:00 followed everything up to this point and when I say nodemon app it says command not found. What do I do now?

  • @pranavsoni1310
    @pranavsoni1310 3 года назад +5

    Thanks again for this tutorial!
    If you are getting this error: "ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client
    db disconnected",
    then try to change the USER in .env file to USERS and also change USER in connection in dbService to USERS. This will resolve the problem.
    This problem is caused as there seems to be an inbuilt variable USER in env so when a connection was made, instead of getting the specific username, the deafult USER value was used that caused this error.

    • @mandyratta6970
      @mandyratta6970 3 года назад

      I guess you are wrong The main reason why this error occurs is because when we make a new user in mysql ,it uses caching_sha2_password plugin for user authentication by default. We can check the authentication plugin for users using the command: SELECT user,plugin,host FROM mysql.user;It will show u a table like this.
      +------------------+-----------------------+-----------+
      | user | plugin | host |
      +------------------+-----------------------+-----------+
      | mysql.infoschema | caching_sha2_password | localhost |
      | mysql.session | caching_sha2_password | localhost |
      | mysql.sys | caching_sha2_password | localhost |
      | root | caching_sha2_password | localhost |
      | tutorial | mysql_native_password | localhost |
      | web_app | caching_sha2_password | localhost |
      +------------------+-----------------------+-----------+
      According to mysql docs :
      The caching_sha2_password and sha256_password authentication plugins provide more secure password encryption than the mysql_native_password plugin, and caching_sha2_password provides better performance than sha256_password. Due to these superior security and performance characteristics of caching_sha2_password, it is as of MySQL 8.0 the preferred authentication plugin, and is also the default authentication plugin rather than mysql_native_password. This change affects both the server and the libmysqlclient client library:
      So if you have already created a user and you want to change the plugin from caching_sha2_password to mysql_native_password write the following command:
      ALTER USER myuser IDENTIFIED WITH mysql_native_password BY 'mypassword';
      replacing myuser with username and mypassword with the password for the repective username.
      Another thing that you could do is to create a new user with plugin mysql_native_password. To do that you could use the following:
      CREATE USER 'your_user'@'your_server_ip ' IDENTIFIED WITH mysql_native_password BY 'your_password';

  • @GarmrZero13
    @GarmrZero13 4 года назад +4

    Yo thanks for this tutorial, the internet desperately needs more node mysql tutorials of quality like this one. Mongodb, even though I like it, seems overhyped.

    • @NsquaredCoding
      @NsquaredCoding  4 года назад +3

      Absolutely! Thank you so much!
      I will definitely add more tutorials with mysql. Usually all my tutorials with a database will be with mysql.

    • @cubedev4838
      @cubedev4838 4 года назад +1

      I agree

  • @ammanmalik4248
    @ammanmalik4248 4 года назад +1

    Your video was really helpful it got me out of a very serious problem i cannot thank you enough :)

    • @NsquaredCoding
      @NsquaredCoding  4 года назад +1

      You're welcome! I'm glad it helped you solve your problem!

  • @kumarsiddasetty8042
    @kumarsiddasetty8042 3 года назад

    Awesome sir,
    Thanks for such detailed explanation in 90 min, It really helps alot

  • @tthamil
    @tthamil 16 дней назад

    It's awsome bro, easy t follow. Thank you

  • @cuntsound
    @cuntsound 4 года назад

    at around 41:30 i start to get "ReferenceError: require is not defined" also and probably unrelated the whole time through the app sometimes runs and sometimes complains that "listen EADDRINUSE: address already in use :::5000"

  • @정수영-q4w
    @정수영-q4w 4 года назад

    Hi i wanna ask smth tht around 27:40s u changed the user name and i did too and i got this error [ ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client ]. Can u answer to my question? and i use mysql-workbench not xxamp if this can make problem?

  • @williesolomon614
    @williesolomon614 3 года назад

    Wow, awesome tutorial, you have a nice voice-concise and understandable explanation. Thank you for sharing your video. God bless you....

    • @NsquaredCoding
      @NsquaredCoding  3 года назад

      You're very welcome!! I'm glad it was helpful. Thank you for such a nice compliment.

  • @dagimcherinet1856
    @dagimcherinet1856 2 года назад

    Thank you very much, this video helped me to build a full-stack application for my final-year project and I got A

  • @eduardoluiz5762
    @eduardoluiz5762 2 года назад

    Hey man, thanks for the tutorial, it was my first crud and you really helped me out.

  • @athibalaji5853
    @athibalaji5853 2 года назад

    In 29:08
    in the code "return instance? instance: new dbservice"
    won't the instance always be null since there appears to be no code that changes it to not null if new dbservice object is created?

    • @NsquaredCoding
      @NsquaredCoding  2 года назад

      Yes you are right! Silly mistake on my part. It should be returning the variable after we set the new instance to the variable.

  • @johnc5258
    @johnc5258 2 года назад

    truly appreciated this. great tempo, explanation, utility

  • @oussbaroud
    @oussbaroud Год назад

    When I start to add code after 17:00 No Data in the table disappear I don't know what is the problem

  • @rohanmp-rt1si
    @rohanmp-rt1si Год назад

    Sir, please tell me how did you changed in privileges as username and other things at 27:28 . I am really facing issue in my code. I am getting same error which you got early
    Please help🙏

  • @thanos2101
    @thanos2101 2 года назад

    Thank you man for this amazing tutorial. Really helped for a project I am working on! Keep up the nice work!

    • @josephezra1701
      @josephezra1701 5 месяцев назад

      My addBtn is giving me error on my browser console any idea how I can fix this

  • @avaneesha9571
    @avaneesha9571 3 года назад

    In timestamp around 18:58 servers runs and shows "test". But in inspect it is showing [Uncaught ReferenceError: require is not defined]
    I am new to node js and i am not able to rectify it.

    • @NsquaredCoding
      @NsquaredCoding  3 года назад

      Can you paste app.js code here where you are using require

  • @moglimogify
    @moglimogify 3 года назад +2

    Thanks for the tutorial, question if I may
    in the insertNewName function you have
    resolve(result.insertId);
    What is .insertId please? is this a class variable from the result in connection query? Im asking because I dont set that
    myself anywehere.
    is resolve(result.affectedRows); the same as well?
    Thanks

  • @zentekvideogames3589
    @zentekvideogames3589 4 года назад

    Im at 27:47 I'm getting this error: error message connect ECONNREFUSED 127.0.0.1:3306 I updated the username to tutorial in mysql users and in .env. Any ideas what can I try? Im on mac if that's relevant.

    • @NsquaredCoding
      @NsquaredCoding  4 года назад

      Can you try checking your MySQL settings and make sure they are the same in your .env?
      Also if you made it this then I'm guessing you have been able to make a connection to the database already?

    • @zentekvideogames3589
      @zentekvideogames3589 4 года назад

      @@NsquaredCoding Hi, thanks for your reply! I have checked the mySQL settings and .env and as far as I can tell they are the same. Unfortunatelly I haven't been able to move past this point. If in the next 12 hours you could be available to help me trouble shoot this so I can finish this project I'll be happy to pay you through paypal. Maybe we can join a zoom channel or google hangout so I can share my screen. I wanted to send you this as a private message but youtube eliminate that option. I reached out to you on twitter too just now. Please let me know. my email is zentektv@gmail.com and twitter handle is @ZenTek_TV Thank you!

    • @NsquaredCoding
      @NsquaredCoding  4 года назад

      Hi, sorry I didn't get to reply sooner! I was thinking I could make a discord channel and I could help you on there! I would love to help.

    • @oscarmendoza5991
      @oscarmendoza5991 3 года назад

      @@NsquaredCoding Having this same exact issue. Restarted XAMPP, nodemon, recreating the DB, and going through the dotenv files and haven't been able to find a solution. I also looked for your discord, but I might have missed it. Hope I can get some help.

  • @dd13mm
    @dd13mm 4 года назад +1

    Awesome ! you are among the best !

  • @R_A_H_U_000
    @R_A_H_U_000 4 года назад

    at 1:05:50 i don't get the { id: '1' } back when I click my button. up to there everything works just like in the video.
    Anyone that can give me some pointers where to look? checked my code for past 2 hours but can't find the problem.

    • @NsquaredCoding
      @NsquaredCoding  4 года назад

      Look in the the response of the route and look into the service where it is returning the Id. I would start there. If you are having trouble try posting your code here and I can look at it.

    • @jumbo999614
      @jumbo999614 3 года назад

      You get data-id={id} instead of actual id right?
      Try this in loadHTMLTable:
      tableHTML += `

    • @josephezra1701
      @josephezra1701 5 месяцев назад

      Did you fix this problem?

  • @rayvnm1577
    @rayvnm1577 4 года назад

    Timestamp: 34:30 - Address (Port) Already in Use. I am receiving this error message when trying to run the first SELECT. It is reporting that the database port is already in use. The DB Server is serving other applications - the application should not be reporting this - correct? I know that I can use a mysql pool to respond to db requests - can you share how the code would change by using a Pool instead of connection?

  • @404alex_eu
    @404alex_eu 4 года назад +2

    thank you for video!!! tutorial so cool !!!! it will be great if someday you make tutorial about authorization in nodeJS with mysql !!! Thanks a lot !!!!!!!

    • @NsquaredCoding
      @NsquaredCoding  4 года назад +1

      You're welcome! I really appreciate this comment! I will definitely make a video about auth with nodejs and MySQL.

    • @Nexus-rt1bm
      @Nexus-rt1bm 4 года назад +1

      Check out The NetNinja, he's cool too

  • @anjanhr1614
    @anjanhr1614 Год назад

    Thank you so much. its helped me a lot for DRY code rules.

  • @huuhungnguyen6304
    @huuhungnguyen6304 4 года назад

    Can anyone help me, at 46:55 im having this error : " Cannot destructure property 'name' of 'request.body' as it is undefined". I managed more than 2 hours but couldnt figure out the solution, many thanks.

    • @NsquaredCoding
      @NsquaredCoding  4 года назад

      Make sure you check your fetch body in the frontend Js. You can also go to the network tab in your browser and check the post data.

  • @razahussain7413
    @razahussain7413 2 года назад

    I want to know that how can you show the data of the row you are editing in edit row input meaning i want that when i click on edit button the value of that row should be filled in the input

  • @ericm8502
    @ericm8502 Год назад

    Amazing video and super informative! Thank you😁!

  • @jurgensubat2827
    @jurgensubat2827 3 года назад

    It was so great and helpful, many thanks for this tutorial!

  • @martianspy7156
    @martianspy7156 3 года назад +1

    It is a very good tutorial!
    I have some issues. can you help me? I dont know why but document.querySelector('table tbody') dont work 10:15
    but if i use document.getElementById('tablebody') and add id to table body it works... how to solve this?

    • @NsquaredCoding
      @NsquaredCoding  3 года назад +1

      Inside your query selector you need to #
      In front to specify it's an id you're looking for. That should fix it!

    • @martianspy7156
      @martianspy7156 3 года назад

      @@NsquaredCoding Thank you so much for your quick response! Yeah, that solved my problem. But I still need to specify otherwise document.querySelector ('# table-Body') doesn't work. I don't understand, because for you and everyone here have everything working as it should, no one has any questions on this. It is difficult to study JS when faced with a similar misunderstanding of the problem

  • @myam754
    @myam754 4 года назад +1

    I'm using postgresql for this project and on 33:56 I get ReferenceError: instance is not defined

    • @drty6818
      @drty6818 3 года назад

      did you ever find a solution to this?

  • @iAmPerflexed
    @iAmPerflexed 2 месяца назад

    34:00 for some damn reason `console.log(response) is printing the response twice and I have no idea why. The 2nd log comes about half a second after the first.
    EDIT: Turns out that all the network connections (network tab of dev tools) were being duplicated and this was being cause by the 'Live Preview' extension in VSCode. Microsoft gaslighting me into thinking I'm crazy for a solid 20 minutes.

  • @L4NGK45A
    @L4NGK45A 4 месяца назад

    Just a short question, to import the package, what if we use powershell or cmd instead of bash. Anyone knows?

  • @mertylmaz9549
    @mertylmaz9549 3 года назад

    man, you did awesome job, thanks and greats and congratulations:)

  • @jbhonest
    @jbhonest 2 года назад

    Excellent tutorial. Thank you.

  • @alazar7685
    @alazar7685 3 года назад

    Great tutorial thanks. i just subbed. keep going man

  • @renderallen3089
    @renderallen3089 4 года назад +1

    Hi NSquared Coding, when I run 'nodemon app,' it's saying the command isn't found. I've done npm install 'nodemon --save-dev' Do you know why this isn't working?

    • @NsquaredCoding
      @NsquaredCoding  4 года назад

      Can you look in your packages.json file to make sure it is installed and you are in the same directory where the packages.json file is

    • @jumbo999614
      @jumbo999614 3 года назад +1

      I installed it like this 'npm install --save nodemon"
      and my package.json is like this:
      "name": "server",
      "version": "1.0.0",
      "description": "",
      "main": "server.js",
      "scripts": {
      "start": "nodemon index.js",
      "devStart": "nodemon index.js",
      "test": "echo \"Error: no test specified\" && exit 1"
      make you're in 'server' folder to run command 'npm start'

  • @NairiAreg
    @NairiAreg 3 года назад +1

    the 1:25 issue in my case was in unpadteBtn.onClick's id was being taken from input's dataset.id but should have taken from button's

    • @josephezra1701
      @josephezra1701 5 месяцев назад

      Same issue and your comment was a life saver God bless

  • @OutlandishSamurai
    @OutlandishSamurai 2 года назад

    Thank you for the video. Although I do have problem and that is that I can't display or console.log the insertId. It returns as undefined. Yet in xampp I can view it.

  • @jumbo999614
    @jumbo999614 3 года назад +1

    I wish there's a shortcut to refresh the page instead adding code between 52:06 -1:00:48.
    Now I see why people choose React or Vue instead of plain HTML with javascript. In React, all you need is useEffect() to refresh.
    Anyway, 52:48 I don't know how MySql INSERT statement return id. Does it return inserted id by default?
    Also, anyone can explain this: data['data'] what does it mean? Where is '.no-data' in index.html?

    • @NsquaredCoding
      @NsquaredCoding  3 года назад +1

      You're right, a client side framework definitely has its advantages in these cases.
      Yes you will get an insert id back when you execute an insert operation.
      Data is an object and inside that object there is a key that is also called data. We are accessing that key inside the data object.
      I believe .no-data is being inserted dynamically from Javascript. I'll need to look at the code to double check.

    • @jumbo999614
      @jumbo999614 3 года назад

      @@NsquaredCoding Thank you so much. Sorry for causing confusion. '.no-data' is in loadingHTMLtable function. I was focusing too much on Insert function that I forgot 'no-data' is dynamic table.

  • @erajikholiqzoda1120
    @erajikholiqzoda1120 4 года назад

    Hi, could you help me with a situation i was running nodemon app but i got the problem "[nodemon] app crashed - waiting for file changes before starting..." may you have idea how to fix this?

    • @NsquaredCoding
      @NsquaredCoding  4 года назад

      There must be an error in one of your files which may be crashing it. Try to stop the server and then restart it if you believe there aren't any errors.

  • @fdctitansc3478
    @fdctitansc3478 11 месяцев назад

    do i need to install dotenv? I'm getting error "Missing destination operand".

  • @NoopNoop
    @NoopNoop 3 года назад

    For some reason, when I try to add a new user to give privileges to the database, the checkbox: "Grant all privileges on database web_app" is missing. The first two checkboxes are there, but not the one I actually need checked.
    Because of that, the app will not connect unless I change the username of the new account in phpMyAdmin to my actual local username in my computer. Otherwise, if I change the name to 'tutorial', it won't work.
    Any help would be appreciated. Thanks!

  • @jmontyy
    @jmontyy 4 года назад +2

    How would I host a full stack app? Do I need to host the server side code somewhere and then host the client side stuff some place else??

    • @NsquaredCoding
      @NsquaredCoding  4 года назад +3

      Thanks a bunch for posting it! I'm also wanting to learn to do the same. I haven't hosted a full stack app myself either. I will read into this.

    • @JenniferStewart100
      @JenniferStewart100 4 года назад

      hosting on Heroku is great for full stack apps

    • @thanosx5190
      @thanosx5190 4 года назад

      @@JenniferStewart100 Can you help me out with how to host it on heroku

    • @dhruvpareek9680
      @dhruvpareek9680 Год назад

      Did any of you guys end up hosting this project somewhere? I'm trying to do the same thing and could use some advice if either of you did.

  • @StevePetruska
    @StevePetruska 10 месяцев назад

    Thanks for this course... should've found it months ago.
    I'm having trouble with mysql and mysql2 imports and exports. Is there somewhere I could get the complete finished code?

  • @nathannoel9837
    @nathannoel9837 3 года назад +1

    This is probably a silly question, but i'm a newbie. What languages (i.e. Javascript) would I need to learn to full understand the programming concepts/syntax behind this video?

    • @NsquaredCoding
      @NsquaredCoding  3 года назад +1

      No silly questions! I'm happy to help.
      Mostly JavaScript for the client side in the browser and then in the backend as well for using the Node runtime.
      Then there is MySQL which is a query language for the database.
      For the web page you'll need to know HTML to build the table and CSS to style your HTML like changing the color for example.

  • @juansocool3
    @juansocool3 4 года назад

    19:27 i am getting an TypeError of cannot read property of 'get' of undefined
    Can anyone help?

    • @jumbo999614
      @jumbo999614 3 года назад

      Please show some code that you wrote. It's hard to tell what causes the error.

  • @tdcrowell
    @tdcrowell Год назад

    Loved this tutorial. Still the best out there for node js with mysql. I was able to modify this to add football players and stats to a data base and filter across any stat. Now I have it working great I just a little stuck on how to deploy It so my group of 20 friends can access it without a monthly fee for hosting the database. Any thoughts or videos on self hosting this app?

  • @jonice4229
    @jonice4229 4 года назад +1

    On beginning of the video when you present demo of this application on first udpate is not refreshing the page but on second update action is refreshing the page, what is the difference?

    • @NsquaredCoding
      @NsquaredCoding  4 года назад

      Hmm I saw that, it might have happened really fast.
      In this project it should refresh the page when clicking on update. There should be no difference. I hope that clears up any confusion.

    • @jonice4229
      @jonice4229 4 года назад

      Nsquared Coding it can be in real time add, edit, remove? Like firebase.

  • @ricetv942
    @ricetv942 3 года назад

    HELP!! Captians
    process.env.HOST is undefined
    how to fix it?

    • @NsquaredCoding
      @NsquaredCoding  3 года назад

      Check if HOST is defined in your .env file

  • @TheNta10
    @TheNta10 3 года назад

    You helped me a lot, god bless you thanks!

  • @river-left4dead2
    @river-left4dead2 2 года назад +1

    After doing everything, i keep getting the error 'data is not defined'... i did everything as you did.

  • @Gadrawingz
    @Gadrawingz 4 месяца назад

    Useful content!

  • @hadekhae.f.5847
    @hadekhae.f.5847 4 года назад

    Hi, thanks for your explanation.. i am confused that how nodejs and apache webserver runs on the same server? Does it affect performance? Is it possible to deploy nodejs and mysql without apache?

  • @gregorychamekh8143
    @gregorychamekh8143 4 года назад +1

    This DbService its exactly what i am searching for! Thank you a lot!

  • @mohamadaidilndt4147
    @mohamadaidilndt4147 3 года назад

    Awesome bro..this type tutorial i prefer..backend and front explain..simple to understand!!keep it up bro..
    and i got question..can we connect from multiple db in 1 server and how to declare it.

    • @NsquaredCoding
      @NsquaredCoding  3 года назад

      I'm glad you liked it!
      Yeah we can definitely connect to more than 1 db in the server. I know I always set the db in my config.
      One way you can connect to multiple dbs is have multiple connection files specific to what db want you want to connect to.

    • @mohamadaidilndt4147
      @mohamadaidilndt4147 3 года назад

      @@NsquaredCoding example i have 2 app..one using wordpress and codigniter.i need my user can access both in 1 user acc.how to make auth global.if posible guide with login/registration too...hehehe..thanks

  • @elinekamaleo1260
    @elinekamaleo1260 4 года назад +2

    On update I've got this error " uncaught ( in promise) TypeError: Failed to fetch" have worked with headers: { 'Content- type': 'application/json' } & still not working. why?

    • @elinekamaleo1260
      @elinekamaleo1260 4 года назад +1

      solved i found that i didn't set id well to the edited raw

  • @akon321hero
    @akon321hero Год назад

    Could you build the same api using MySql Workbench, and also conduct all back-end and front-end functionalities in one js file? Its a little confusing .env file as I haven't used that in my last task where I created a dynamic webpage using mongodb. Was just wondering as I wanted to do it easier way. Thanks.

  • @ammanmalik4248
    @ammanmalik4248 4 года назад

    HI. can you please tell me how i can modify this code to add a dropdown menu instead of a table?

  • @apoorvadidhate3334
    @apoorvadidhate3334 4 года назад +1

    Hii, i'm getting the following error while adding name:
    TypeError: Cannot read property 'insertId' of undefined at Query.
    Can you please help?

    • @NsquaredCoding
      @NsquaredCoding  4 года назад

      Hi there! Yeah check the response variable. You can add a console.log to see that. It is most likely undefined that is why the error is being thrown. There may something when the query is being executed. You may want to start there. I hope this helps!

    • @brianndwiga7308
      @brianndwiga7308 4 года назад

      Am getting this issue and I have made sure the code is same as yours but still the same error comes up...can you kindly assist me?

    • @pranavsoni1310
      @pranavsoni1310 3 года назад

      Hi there!
      I was getting the same error. Realised that it was caused due to an error in SQL syntax. Do check it if it if there is an error like this.

    • @Smith-kx6bj
      @Smith-kx6bj 3 года назад

      Did anyone get passed through this error?

    • @tomaszsare8521
      @tomaszsare8521 Год назад

      In my case MySQL query was wrong. Check if column names in your database are exacly the same in query, so you have name column, and date_added column (or copy names from DB to query) and also check if table name is exacly the same in query as in DB. Hope it helps.

  • @riseup8059
    @riseup8059 4 года назад

    Nice tutorial, subscribed 👍

  • @pavankumar-of8ee
    @pavankumar-of8ee Год назад

    Getting error something like " promise is not defined" can u plzz help

  • @karl5018
    @karl5018 4 года назад

    Hello great tutorial and all but at the update part the section where you added the header on the fetch of updatebtn. When I followed it I’m only getting the name and not the id of updateNameInput. How to fix this :(

    • @NsquaredCoding
      @NsquaredCoding  4 года назад

      If I remember correctly the Id is being set in the html element. Are you see it there in the Dom?

    • @SprigganCS
      @SprigganCS 2 года назад

      how did you solve this?

  • @avamoradi4757
    @avamoradi4757 4 года назад

    Thank you ! it was a really good tutorial.

    • @NsquaredCoding
      @NsquaredCoding  4 года назад

      You're welcome! I'm glad it was helpful!

  • @nzezonto
    @nzezonto 4 года назад

    I just wonder why you used port 5501 in the url and declare 5000 in the app? This does not add up for me since I get error.
    Thank you!

    • @NsquaredCoding
      @NsquaredCoding  4 года назад

      I don't remember using 5501. It could be a typo on my end in the video.

    • @nzezonto
      @nzezonto 4 года назад

      @@NsquaredCoding Oh, sorry I could've updated the the post.
      You had no typo. I paid less attention in-between.
      I went backwards in the video to be sure and realised that you had clicked on "open with live server", thats why you got another port number than the one used in the tutorial.
      It's all working fine for me now.
      Thanks for taking time and reply.

  • @jonasbalsys3696
    @jonasbalsys3696 4 года назад +1

    how to start frontend? i start it with nodemon index.js and get this error ReferenceError: document is not defined

    • @NsquaredCoding
      @NsquaredCoding  4 года назад

      That will start your backend server. You need to creat an html file with a JavaScript file that will be included in your html file. Open the html file in your browser and you should be good to go.

  • @jiga6559
    @jiga6559 2 месяца назад

    do you have a new one ?, its been for years so i need a new update of these code, hope you can help me, your video is very useful.

  • @maxiequa567
    @maxiequa567 4 года назад +2

    Just discovered your channel, your tutorials are awesome! Would you consider making email registration and login for this system to fully round out the app? Thanks for your time and knowledge.

  • @ankur_singh2310
    @ankur_singh2310 4 года назад

    Great tutorial !!!!!

  • @sandeeprathod6715
    @sandeeprathod6715 3 года назад

    Finished Thanks a lot ❤ sir

  • @AmanKumar-qi7it
    @AmanKumar-qi7it 3 года назад

    thanks for this amazing tutorial

  • @johnlouiscrutchfield5906
    @johnlouiscrutchfield5906 Месяц назад

    Can you update this please for mysql 2 and pools?

  • @justinellis120
    @justinellis120 3 года назад

    Hello
    I am newer to NODE and I am getting this error when I try to pst
    TypeError: Cannot read property 'insertId' of undefined

    • @NsquaredCoding
      @NsquaredCoding  3 года назад

      Were you able to resolve the problem?
      The reason this is happening is because the response variable you are trying to access insertId is undefined.

  • @ayushkiledar5744
    @ayushkiledar5744 3 года назад

    Facing an issue
    It's showing app is running on terminal but on what localhost is it running?
    I've tried 5000 but nothing happened!!

    • @NsquaredCoding
      @NsquaredCoding  3 года назад

      Are you entering localhost:5000 in your browser and an error is being throw? You can run console.log to see what the error is?

    • @ayushkiledar5744
      @ayushkiledar5744 3 года назад

      @@NsquaredCoding when I'm running console.log("app is running at " + process.env.DB_PORT)
      Output is : app is running at undefined.
      Can you pls figure out what's the problem??

  • @vedsoni6374
    @vedsoni6374 4 года назад

    sqlMessage: 'Client does not support authentication protocol requested by server; consider upgrading MySQL client', I'm getting this error what should i do?

    • @NsquaredCoding
      @NsquaredCoding  4 года назад

      What software are you using to create a DB server?

    • @jumbo999614
      @jumbo999614 3 года назад

      Try this: This code doesn't do much. It just test mysql connection.
      If it works, then your connection is fine and you can continue doing other MySql queries.
      dotenv.config();
      //Connection Configuaration/*************************
      const conLink = {
      host: process.env.HOST,
      user: process.env.USER,
      password: process.env.PASSWORD,
      database: process.env.DATABASE,
      port: process.env.DB_PORT,
      insecureAuth : true,
      };
      const db = mysql.createConnection(conLink);
      db.connect(function(err) {
      if (err) {
      console.log('There is error', err.message);
      }
      else {
      console.log("Database Connected!");
      }
      });

  • @aminaobrazhda8103
    @aminaobrazhda8103 Год назад

    This is very helpful but my dbService also got disconnected but mine didnt tell me anything about passwords and stuff like that just in the terminal it said dbdisconnected

  • @abdifatahmoh
    @abdifatahmoh 2 года назад

    Hey man, thanks for this cool project. I was wondering if no data found in the search input, it should say "No Data Found" but in the tutorial you didn't implement that. I coulnd't figure out the implementation.

  • @graykaufmann
    @graykaufmann Год назад

    Did someone also had problems with implementing the code ? my buttons are not working/showing at all, i am not sure where exactly the problem is.

  • @cauwee
    @cauwee 4 года назад +1

    I am getting zsh: command not found: nodemon
    how can I fix this error.

    • @NsquaredCoding
      @NsquaredCoding  4 года назад

      Did you install nodemon? That's probably why it is giving you that message.

    • @cauwee
      @cauwee 4 года назад +1

      @@NsquaredCoding I had to use npm install -g nodemon to install nodemon instead of npm install --save-dev nodemon. It works now. Thanks

  • @charismanafriandi8584
    @charismanafriandi8584 3 года назад

    #HELP
    i have error like that
    ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client

  • @kamey3854
    @kamey3854 4 года назад

    Thank You so mutch for this video! It's so helpfull :)

  • @VincentLabStudio
    @VincentLabStudio 3 года назад

    Great tutorial

  • @iAmPerflexed
    @iAmPerflexed 2 месяца назад

    If you have any trouble with nodemon saying "nodemon: command not found", I found this Stack Overflow answer which helped me...
    ```
    npx nodemon [your-app.js]
    ```
    With a local installation, nodemon will not be available in your system path. Instead, the local installation of nodemon can be run by calling it from within an npm script (such as `npm start`) or using `npx nodemon`.

  • @nithishronaldo1612
    @nithishronaldo1612 2 года назад

    How can we hash password in sql it is possible ? Or not

  • @jansoriano6687
    @jansoriano6687 4 года назад

    Hi, i got a question on delete, since I didnt added the date? how can I make my entries as an array list?

    • @NsquaredCoding
      @NsquaredCoding  4 года назад

      Hi! I couldn't understand your question entirely. Could you explain in further detail please?

    • @jansoriano6687
      @jansoriano6687 4 года назад

      @@NsquaredCoding Hi, I was able to fix my problem with delete. I would like to ask if you can help me with the edit part since I wanted to use the add textinput and button. Also thank you for this tutorial.

    • @NsquaredCoding
      @NsquaredCoding  4 года назад

      I can definitely help. What are you having trouble with?

    • @jansoriano6687
      @jansoriano6687 4 года назад

      @@NsquaredCoding with the edit function that you created, you added a section, what I would like to know if we can use the addtextinput and addbutton instead of using the section hidden?

  • @andre4595
    @andre4595 2 года назад

    Hi, nice tutorial it helps me a lot.
    I have a smal problem. So in the tabel on my webseit the name is showd but the id and Date will be showd with undefind. I do not realy now the problem.
    If I want to parse the Date it says invalid Date.
    I hope some one can help me.
    Thx

  • @mahendranath2504
    @mahendranath2504 3 года назад

    Thank you 👍🏼🙏, subscribed ❤️

    • @NsquaredCoding
      @NsquaredCoding  3 года назад

      You're welcome! Thank you for subscribing!