Angular/Nodejs/Database
I have Angular 7 web application, I want to communicate to a database so I am going to install Nodejs on the same Linode and communicate with a database. I just want to know if I am going down the right path?
I don't know much about Nodejs yet but I will.
1 Reply
Hi there,
I think you're on the right track in using Node.js, I highly recommend it for connecting the backend of your project. I assume you have a javascript background in that you are utilizing Angular, otherwise you might consider using PHP.
We have a guide here on installing Node.js or you can follow the instructions straight from the NVM Github page here.
For a complete package I would consider following this guide for using Node.js with NGINX on Debian.
One technology that often goes hand-in-hand with Node.js is Express.js. If you would like to go that route, here is the format you might use to connect to your MySQL or MongoDB database.
Here is one more guide that I have not personally tried but looks to outline the whole stack for you: LEMN Stack
I hope this all helps and be sure to share your project when its done!