Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript

Jason Pallone
Jason Pallone
11,340 Points

Creating a login?

So as a aspiring developer I have TONS of questions, one that has been chipping away at me lately is this, to create a login, so someone can log in and view their profile and log out etc.. You need to use something like SQL/MONGODB right? Along with of course HTML/JavaScript/node/EXPRESS? As far as logging in and out I mean, you would need to store data on the server using those?

I don't expect someone to write out the code for me, but just help clear it up please and thanks :)

1 Answer

Basically, Node.js is a Javascript runtime for writing JavaScript on the server side. Express is a framework for making web apps. You are going to basically use express to add, search, update, and delete data on the database. It seems quite complicated in the beginning, but if you go through the last half of the Full Stack JavaScript Track, you will know all about these technologies. There is also even a course on User Authentication with Express. Hope this helps! Thanks :)

Jason Pallone
Jason Pallone
11,340 Points

Thanks! That does help! So the database that holds the information, like people's login info, would be mongoDB for example, then express is what stores, retrieves, updates and deletes, the info from that database?

Yes