Thanks for contributing to programming club website as a part of winter of code. We hope you learn something new and this can help you during your further open source contributions.
This guide will walk you through the steps to get the project up and running on your local machine.
Before setting up the project, ensure you have the following installed on your system:
- Node.js (v18 or later) (preferred any version >= 20)
- npm (comes bundled with Node.js i.e. you do not need to install this seperately)
- Git
-
Fork the repository
- In this repository, on the top-right side you can see an option to fork.
- Once done, a copy of this repository will be created in your github account
-
Clone the Repository
First, clone the repository to your local machine using Git:
git clone https://github.com/Your-Username/WOC-2024.git
Replace
Your-Username
with your github username. -
Move to project directory
cd WOC-2024
-
Install Dependencies
Install the required dependencies using npm:
npm install
-
Run the development server
npm run dev
This will start the Vite development server, and you can view the project in your browser at
http://localhost:5173
.
If you are looking forward to contributing, please create a new branch before making any changes. Learn more about it from here
-
Create a new branch
git checkout -b my-new-branch-name
-
branch name can be anything but you can keep it in align with the issue you are solving. For instance
git checkout -b add-navbar
-
Try to make sure you are working on latest codebase
- For this before working on any issue, you can headover to your forked repository and check for whether something like
update branch
is written there, make sure you update your branch withSync Fork
option (Make sure your branch is selected asmain
there)
You are all set now to make your changes. If there are any problem, feel free to contact us.
-
Add your changes
git add .
-
If you just want few files to be part of the change that you made
git add App.jsx App.css
-
-
Commit your changes
git commit -m "my changes"
again this commit message can be anything random, but good practice is to use meaningful commit message. Please have a look at this link to know more about this best practice
-
Push 🚀 your changes
git push origin my-new-branch-name
Once you push the changes to your cloned repository, the Compare & pull request button will appear in that github repository that was created when you forked this repository.
We are looking forward to review your changes and hope you learn something new during this.