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

Поділитися
Вставка
  • Опубліковано 6 лис 2024

КОМЕНТАРІ • 368

  • @scottparrish7244
    @scottparrish7244 2 роки тому +31

    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.

  • @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

  • @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';

  • @BillkerPlus
    @BillkerPlus 3 роки тому +12

    we need more apps like this , thank you man ♥

    • @NsquaredCoding
      @NsquaredCoding  3 роки тому +4

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

    • @mydiscord8667
      @mydiscord8667 3 роки тому

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

  • @mcloughman
    @mcloughman 2 роки тому +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  2 роки тому +1

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

  • @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! :)

  • @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

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

  • @Trevador696
    @Trevador696 2 роки тому +1

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

  • @iAmPerflexed
    @iAmPerflexed 21 годину тому

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

  • @BekBrace
    @BekBrace 4 роки тому +2

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

  • @byronkenoly
    @byronkenoly Рік тому

    best tutorial on youtube hands down

  • @lorenzowang7933
    @lorenzowang7933 3 роки тому +2

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

  • @aliimranadil2
    @aliimranadil2 2 роки тому

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

  • @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

  • @tdcrowell
    @tdcrowell 10 місяців тому

    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?

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

  • @moglimogify
    @moglimogify 2 роки тому +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

  • @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

  • @kumarsiddasetty8042
    @kumarsiddasetty8042 3 роки тому

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

  • @ammanmalik4248
    @ammanmalik4248 3 роки тому +1

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

    • @NsquaredCoding
      @NsquaredCoding  3 роки тому +1

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

  • @StevePetruska
    @StevePetruska 8 місяців тому

    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?

  • @eduardoluiz5762
    @eduardoluiz5762 2 роки тому

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

  • @johnc5258
    @johnc5258 2 роки тому

    truly appreciated this. great tempo, explanation, utility

  • @anjanhr1614
    @anjanhr1614 Рік тому

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

  • @thanos2101
    @thanos2101 Рік тому

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

    • @josephezra1701
      @josephezra1701 2 місяці тому

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

  • @jiga6559
    @jiga6559 12 днів тому

    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.

  • @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

  • @OutlandishSamurai
    @OutlandishSamurai Рік тому

    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.

  • @rafimahid8630
    @rafimahid8630 2 роки тому

    Nice video brother, but you didn't show that how did you connect your database .

  • @sekokhan5307
    @sekokhan5307 2 роки тому

    Nice work bro, can u show how u can create a sign in/create account and have a user profile so different users have different data?

  • @aminaobrazhda8103
    @aminaobrazhda8103 9 місяців тому

    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

  • @river-left4dead2
    @river-left4dead2 2 роки тому +1

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

  • @sohaibk.3192
    @sohaibk.3192 3 роки тому

    The voice of the tutor sounds like Patrick Jane from The Mentalist TV Series.

  • @gregorychamekh8143
    @gregorychamekh8143 3 роки тому +1

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

  • @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

  • @foz3r320
    @foz3r320 2 роки тому

    This is way too much for me, but i somehow got it in my app. Thanks

  • @jbhonest
    @jbhonest 2 роки тому

    Excellent tutorial. Thank you.

  • @dd13mm
    @dd13mm 4 роки тому +1

    Awesome ! you are among the best !

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

  • @ashutoshkaushik9924
    @ashutoshkaushik9924 3 роки тому +1

    are we using rest api here ????

    • @NsquaredCoding
      @NsquaredCoding  3 роки тому

      Yes we are using a restful API with express.

  • @bansal2779
    @bansal2779 2 роки тому

    Sir, Thanks for the video it was so helpful. I am running on localhost:8080 and cant run please can you help me.

  • @Gadrawingz
    @Gadrawingz Місяць тому

    Useful content!

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

  • @yaroslavraksha6747
    @yaroslavraksha6747 3 роки тому

    Nice tutorial!) But it is sad that you didnt show how to refresh data without reloading page. Anyway, nice job! Appreciate it

    • @NsquaredCoding
      @NsquaredCoding  3 роки тому

      Thank you!
      To refresh the data without reloading the page we need to rebuild the table each time in javascript and then render it to the dom.
      Let me know if that helps or you want to know more about the implementation.

    • @dagimcherinet1856
      @dagimcherinet1856 2 роки тому

      @@NsquaredCoding I just enclosed the fetch inside a function called 'showTable' and every time i add data i call this function and it updates the table without reloading the page

  • @andre4595
    @andre4595 Рік тому

    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

  • @hadekhae.f.5847
    @hadekhae.f.5847 3 роки тому

    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?

  • @ericm8502
    @ericm8502 Рік тому

    Amazing video and super informative! Thank you😁!

  • @L4NGK45A
    @L4NGK45A Місяць тому

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

  • @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 2 місяці тому

      Same issue and your comment was a life saver God bless

  • @VuNguyen-bf7cj
    @VuNguyen-bf7cj 2 роки тому

    Thank you!
    I want to convert server api from .Net to ExpressJs and then I found this video.
    In .Net we get data from data base with EntityFramwork(use LINQ) and in JS we get data with query sql, right?
    And I want to know how to create database in code, migration data base, (add new table, edit(delete, add column) table).
    Can you make a video for that?
    Thank a lot!

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

  • @spondoolie6450
    @spondoolie6450 Місяць тому

    Once you add a new record to the database you don't need to recreate the function to load data into the table .... you already have that function (loadHTMLTable) and you can just call it again.

  • @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

  • @jurgensubat2827
    @jurgensubat2827 3 роки тому

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

  • @alazar7685
    @alazar7685 3 роки тому

    Great tutorial thanks. i just subbed. keep going man

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

  • @renderallen3089
    @renderallen3089 3 роки тому +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  3 роки тому

      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'

  • @TheNta10
    @TheNta10 2 роки тому

    You helped me a lot, god bless you thanks!

  • @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

  • @justmoo9587
    @justmoo9587 2 роки тому

    Really great video! How do i reset the ID when my table is empty?

    • @NsquaredCoding
      @NsquaredCoding  2 роки тому

      There is a sql command you can run to reset the primary id

  • @fdctitansc3478
    @fdctitansc3478 8 місяців тому

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

  • @mertylmaz9549
    @mertylmaz9549 2 роки тому

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

  • @eli9994L
    @eli9994L 7 місяців тому

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

  • @SprigganCS
    @SprigganCS 2 роки тому

    if your db is not connecting, try update your user in phpmyadmin by giving yourself all privileges (global privileges: select all)

  • @faarhantri9170
    @faarhantri9170 2 роки тому

    Hey dude, i'm following this tutorial you brought. I trying add three data column attributes for table from my database i've created, example I created ("name", "address", "no. Telp") into table. Then, can you tell me how fetch those three data column into table to view in website is working?
    Btw, love you videos.

    • @NsquaredCoding
      @NsquaredCoding  2 роки тому

      Hey so you'll need to perform a select query to retrieve those columns. Does that help?

    • @faarhantri9170
      @faarhantri9170 2 роки тому

      @@NsquaredCoding yeah, i added it. And it worked after i used to create "insert" and "delete" query for table, except i have problem those "update" for editing data I want and can't change those three attribute, and I got some error because it's from relationship between function from index and app , and it's said "Uncaught (in Promise) Syntax Error: JSON.parse: unexpected character... " and "XHR Patch 404... " In console my log. Can you tell me hint how to fix it?

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

  • @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🙏

  • @NoopNoop
    @NoopNoop 2 роки тому

    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!

  • @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

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

  • @renesalvacion6169
    @renesalvacion6169 2 роки тому

    Please create content about sql injection

  • @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

  • @정수영-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?

  • @ammanmalik4248
    @ammanmalik4248 3 роки тому

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

  • @lourdunirmal6364
    @lourdunirmal6364 3 роки тому

    u have changed user name indirectly . how do we know what are the changes required correct the connection request. iam new to this language. iam following a this videos .actually its awsm . But iam stucked in that connection part. how can i clear that

  • @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"

  • @pavankumar-of8ee
    @pavankumar-of8ee Рік тому

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

  • @anettebergman5920
    @anettebergman5920 2 роки тому

    Thanks for a great tutorial. But I can't get the connection to the database to work ! I also get: ER_ACCESS_DENIED_ERROR How can I fix it. For me it seems that the file .env is not working. Can anyone help me??

    • @NsquaredCoding
      @NsquaredCoding  2 роки тому

      Have you installed the dotenv package?
      npm install dotenv
      Make sure you are importing it correctly as well

  • @AmanKumar-qi7it
    @AmanKumar-qi7it 3 роки тому

    thanks for this amazing tutorial

  • @orlandomoutsa6005
    @orlandomoutsa6005 3 роки тому

    Thank you for this one!
    Can u tell us , how to deploy the client side to a host( netlify for example) and talk to our server (node.js).
    I mean, i want to visit the website on my phone, and to send some data to the server, so i can store them in MySQL. Is is possible?

    • @NsquaredCoding
      @NsquaredCoding  3 роки тому +2

      There are many examples already on how to deploy to netlify. If you want to host a full stack project look into using heroku. They have a free tier.

    • @orlandomoutsa6005
      @orlandomoutsa6005 3 роки тому

      @@NsquaredCoding Oh, u replied! what a god! Thank you

  • @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 3 роки тому

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

  • @sandeeprathod6715
    @sandeeprathod6715 3 роки тому

    Finished Thanks a lot ❤ sir

  • @VincentLabStudio
    @VincentLabStudio 3 роки тому

    Great tutorial

  • @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?

  • @Be_real
    @Be_real Рік тому +1

    I’m getting error that document is not defined any solution please @Nsquared Coding

    • @josephezra1701
      @josephezra1701 2 місяці тому

      Please did you solve this?

    • @josephezra1701
      @josephezra1701 2 місяці тому

      I solved it finally my issue was that I was in the client side of the project and not server side check if that's your issue too

  • @singhvimlesh
    @singhvimlesh 4 роки тому

    Hello Sir can help for making video on Signuo and login form with mysql workbench..

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

  • @jayroo10
    @jayroo10 Рік тому

    mine is working wooh, is it hard to move this online to a website? I assume it's just changing the directory paths, etc?

  • @erajikholiqzoda1120
    @erajikholiqzoda1120 3 роки тому

    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  3 роки тому

      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.

  • @elmirmahmudov6215
    @elmirmahmudov6215 3 роки тому

    Why mysql with node tutorials are less? Thnx man

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

  • @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

  • @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?

  • @fakefaker1564
    @fakefaker1564 4 роки тому

    Hi Nsquare;
    I still didnt understand this part of tutorial:
    static getDbServiceInstance() {
    return instance ? instance : new DbService();
    Since you already declare the instance = null..
    Wouldn't the results will always will be null..
    And I still cannot understand of this part , on what exactly is the purpose of getDbServiceInstance()..?
    Btw.. great tutorial .. thankYou

    • @NsquaredCoding
      @NsquaredCoding  4 роки тому +1

      Thank you!
      That is to make sure we are only getting one instance of the db class. If we are making multiple queries and are using this class there is no need to make multiple instances of this class. It will return the original instance that was created. I hope that helps clear it up!

  • @avamoradi4757
    @avamoradi4757 3 роки тому

    Thank you ! it was a really good tutorial.

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

  • @spangeman3994
    @spangeman3994 2 роки тому

    the nodemon command did not work for me, I had to install nodemon globally
    npm install -g nodemon