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! While you're at it, check out some resources Treehouse students have shared here.

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


dylan kane
dylan kane
2,772 Points

meteor default accounts

I just started using meteor for a social media app I am working on, and I found out you can add user accounts simply using the console commands. Now I have that in my app, but I'm not sure how to access the information. For example, how would I link a profile page to a user as soon as they made an account? Any help would be great, thanks!

1 Answer

It creates a collection in Mongo called users, and there are a few other variables that you can access to get information about the currently logged in user (user() and userId()).

Check out the Meteor documentation on Accounts and the Meteor Tutorial - Adding user accounts

Note that you will need to install some Meteor packages for it to all work correctly, but you also have the option of allowing registration/logins with third party accounts like Facebook, Twitter, GitHub, etc.