Hi João,
This isn't about your design. I just wanted to know how you created all the code challenges under one main repository on GitHub. Actually, creating multiple sub-repos under the main repo is not the issue. I want to create separate URLs for each sub-repo when deploying and separate commit. This is the main issue I encountered. Can you please tell me how to do that if you have time? I really appreciate it.
PS: I tried several ways, like using the submodule option, creating a workflow method, and just uploading local project folders into the GitHub main repository.
Thank you, Piyumi
@joaotfrodrigues
Posted
Hi Piyumi,
To create multiple code challenge projects under one main GitHub repository and deploy them with separate URLs, follow these steps:
-
Create a New GitHub Repository
- Name the repository, for example,
frontendmentor_challenges
.
- Name the repository, for example,
-
Organize Projects in Folders
- Place each project in its own folder within the main repository.
-
Enable GitHub Pages
- Follow a tutorial to set up GitHub Pages for the repository. You can use this video for guidance.
-
Access Projects via URLs
-
After setting up GitHub Pages, you can access each project by appending the folder name to the repository's GitHub Pages URL. For example:
-
Main URL: https://joaotfrodrigues.github.io/frontendmentor_challenges
-
Project URL: https://joaotfrodrigues.github.io/frontendmentor_challenges/blog-preview-card/
This method allows you to deploy each project with separate URLs and manage them under one repository.
-
Best regards, João Rodrigues
@joaotfrodrigues
Thank you so much. I will try this way.
Piyumi.