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

JavaScript

Does someone understand how to make new channels through the code provided in this tutorial?

Tutorial here:

https://themeteorchef.com/recipes/building-a-chat-application/#tmc-defining-our-collections

Basically the tutorial helps show how to create a meteor chat application which uses some mongo db collections to house chat groups and the messages in the chat groups. The chat groups in this tutorial are called channels when there is more than just two people in it, just the two people would be a direct message. I am trying to figure out how to add more channels, but I have come across some weird problems. When I try to enter a new channel in manually through terminal it comes with a weird timestamp that is invalid, and the only way it seems to be possible through the code provided is in the "seed-database.js" file which gives the application some default data, including one channel. I've tried adding more channels through this file but is seems as if this file is only used once when the application is started for the first time and then never again, also something I do not quite understand. I have tried contacting the developer but sadly I have received no response, and I am quite lost on how to find a solution. If no one can give me a solution on this site could you at least try and point me in the right direction for finding the solution. Thanks!