Hey there, fellow ALCC members! 🙌
We’re excited that you’re here to help us enhance the Weave Game Project. Whether you’re a coding pro or just starting, this guide will help you contribute easily and effectively. Let’s get started! 🛠️
First things first, fork this repository to your own GitHub account!
🔗 Need help? Follow this guide on how to fork a repository.
Now that you’ve forked the repo, clone it to your local machine.
-
Using Command Line:
git clone https://github.com/YOUR_USERNAME/weave-game.git
-
Using GitHub Desktop:
- Open GitHub Desktop.
- Click on "File" > "Clone Repository."
- Select your forked repository and click "Clone."
Creating a separate branch is a best practice! This keeps our work organized.
- Using Command Line:
git checkout -b feature-name
Example:
git checkout -b add-landing-page
- Using GitHub Desktop:
- Go to the "Current Branch" menu and select "New Branch."
- Name your branch (e.g.,
add-landing-page
).
For front-end contributions, use the .jsx
format when creating React components/pages. Even though you might be working with basic HTML and JavaScript locally in your own development environment (like editing an index.html
file), all pull requests to this repository must use JSX.
- Locally: Feel free to experiment with frontend code using simple HTML, CSS, and JavaScript.
- For Pull Requests: Ensure your work is submitted in JSX format and follows the structure below. Use PascalCase for naming files and folders.
Example file name:
LandingPage.jsx
Folder structure:
src/app/components/LandingPage.jsx
Assets Folder:
Place any assets in the src/app/public/assets
folder. This will keep your assets organized alongside the components.
We use Tailwind CSS for styling. You can add classes to your JSX components like this:
<div className="bg-blue-500 text-white p-4">
<h1>Welcome to Weave!</h1>
</div>
After making your changes, you need to stage and commit them.
-
Using Command Line:
- Stage your changes:
git add .
- Commit them with a descriptive message:
git commit -m "Add Landing Page component"
- Stage your changes:
-
Using GitHub Desktop:
- Click on the "Changes" tab in the left sidebar.
- Add a descriptive summary of your changes and click "Commit to [branch name]."
Now, push your changes to your forked repository.
-
Using Command Line:
- Push your changes:
git push origin feature-name
- Push your changes:
-
Using GitHub Desktop:
- Click on the "Push origin" button in the top-right corner of the app.
Once your changes are pushed to your forked repo, it's time to create a Pull Request (PR) to merge your changes into the main project.
- Head over to GitHub, open the repository you forked, and you should see an option to "Compare & pull request" next to your branch.
- Provide a clear description of the changes you made.
🔗 Need help? Follow this guide to create a Pull Request.
- Files and folders should follow PascalCase.
- Example:
LandingPage.jsx
- Keep components modular and reusable.
- Place all components in the
src/app/components
folder.
- Use Tailwind CSS for all styling purposes.
- Ensure that you follow the project's design system. Refer to existing components to maintain consistency.
- React (.jsx format)
- Tailwind CSS
- Next.js
- Firebase
- Auth.js
- Be kind, respectful, and professional when contributing and interacting with others.
- Make sure your code is clean, readable, and well-commented.
- Test your components thoroughly before submitting them.
- Collaborate with other contributors to avoid overlapping work.
For this project, while it's perfectly fine to test your components in any environment or framework that you're comfortable with, all pull requests must be in the .jsx
format as outlined in this guide. Make sure your code follows the structure and practices laid out here before submitting any pull requests.
That's it! 🎉 You’re all set to contribute to the Weave Game Project! We can’t wait to see what you build. 🚀 Happy coding! 😎