labrocadabro / communitytaught

MIT License
79 stars 31 forks source link

Unsure of how to populate Lessons database for local development #17

Closed 7MinutesDead-Git closed 8 months ago

7MinutesDead-Git commented 1 year ago

Hey there! I'm wanting to contribute and help build some of this site out (like the progress bar), however I haven't been able to figure out how I can populate my local database with the base lessons that are present on the official site/db. I'm not seeing this data anywhere, nor a means of importing it (I see I can import my progress from the old site, but that doesn't give me the base data of each lesson).

When I get everything up and running, the collections are created in the database, but they're empty. image

So I believe I'm missing all the Lesson data as far as lessons containing videoId, title, thumbnail, etc. image

How can I get my local db populated with the base Lesson documents so I can start developing and testing changes?

labrocadabro commented 1 year ago

I apologize, I'm in the middle of a major refactor and haven't got the project fully set up for contributions yet.

I'll get you the lesson and homework json files shortly, you can import them to get the data.

labrocadabro commented 1 year ago

The json files are now available in the /data folder, you can import them into their respective collections.

You'll also need to set up your .env file and add a user. If you run into any issues with that, let me know.

7MinutesDead-Git commented 1 year ago

I appreciate it! I did manage to get the .env setup, I just ran into a bit of a block without the lessons :P