Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
Mohamed Ahmed6,517 Points
Node.js insert data into where?
What I know in the case of using PHP as a server side language we build the web app server by using php and establish this server with Apache or Nginx and PHP insert the data into MySQL Database. My Question is what if we use Node.JS instead of PHP, are we will use the same technologies (Apache,MySQL) or we will face a different scenario and if that , what is?
William LiCourses Plus Student 26,867 Points
In the world of Node.js, the MEAN stack for building web apps is very popular -- MongoDB, Express, AngularJS, and Node; where MongoDB serves as database for storing data. You can of course use MySQL instead of MongoDB as your backend database, or you may use both of them if that's what you prefer. Node.js doesn't restrict you on using any one particular database over the others.