Separate GitHub repositories for every FCC project?

Is is better to have lots of different GitHub repositories for each of the projects completed in FCC or to have one that groups all of your smaller projects together?

2 Likes

I would definitely keep at least all the front-end projects in a single repo.

2 Likes

@ClimbinSheep I kept one repo for basic Javascript then added a new one when I started basic algorithm scripting.

Yes, put related projects all in one repo. You could put each project into its own folder, but that might not be necessary if you name your files wisely.

I put all of my FCC work into one repo. To keep it clean, I separated each section into folders (i.e. ā€œbasic-algorithm-scriptingā€, ā€œintermediate-front-end-development-projectsā€, etc.).

3 Likes

So you save all the FCC challenges in GitHub as well, aside from the projects?

Out of interest, how does this work if you wanted to use GitHub Pages to show off your projects? Iā€™m very new to all this (but am using GitHub instead of Codepen), but it seems that you need an index.html page for it to pick up what youā€™re doing and I assume you can only have one of those per repository?

2 Likes

Yeah, I have been saving my algorithm solutions and my regular projects into one repo. But thatā€™s just personal preference. You could just do the finished projects instead.

If I remember correctly, you can only have one Github Pages project.

Aah that makes sense - so potentially set the project live and once checked etc, move it into its own folder and then rinse/repeat. Thank you!

You can have 1 GitHub page that acts like your ā€˜usernameā€™ page for your name, and unlimited projectsā€¦ each has itā€™s own repo as far as I recallā€¦ you have to do a very specific branch naming for it to publishā€¦ something like gh-pagesā€¦

So if you are storing projects then many in one repo is fine but if you want to make a very basic webpage and use GitHub to publish it I think itā€™s one per repoā€¦

3 Likes

Ah! I should always go to the sourceā€¦

Shows how to create both the Userpage and multiple project pages.

2 Likes

Thanks Darren - thatā€™s what I thought. For my Front-End projects Iā€™ll keep things as separate repos. Once I move on to Full-Stack I may be able to combine them.

1 Like

The topic is a bit old but after saving your codes on Github, you can deploy your projects on Heroku.

1 Like