Welcome to OpenPrep đ
This repository is a comprehensive collection of resources for various programming languages. It includes tutorials, code samples, best practices, and reference materials to help developers of all levels enhance their skills and knowledge in multiple languages.
Start Learning Instantly
You donât need to install anything! Simply browse through the available languages, and under each one, youâll find a collection of tutorials, code samples, and resources to help you learn and grow. Just pick a topic and dive right in!
Interested in contributing to OpenPrep?
First of all, thank you for taking the time to contribute! đ¤
The following is a set of guidelines for contributing to this repository. Before contributing, we encourage you to read our Code of Conduct.
Code Of Conduct
Contributing Guide â¨
-
Forking the OpenPrep Repository
Click the Fork button at the top right of the OpenPrep repositoryâs GitHub Page to create a copy in your account, or go directly to the Fork Page & click on Create Fork button. After successfully forking the repo, youâll be redirected to your copy of the OpenPrep repository.
-
Cloning the OpenPrep Repository
On your forked repo, click the button that says
<> Code
. UnderLocal
tab, it will open a dropdown menu. Copy the link in the input with the labelHTTPS
orGitHub CLI
depending on your preferred cloning mode.For cloning via
HTTPS
, first create a folder on your system and open it inVS Code
or any other code editor. Then, open the terminal inside this folder and run the following command to clone or have a local copy of the forked repository in this folder:Here, replace
<your-username>
with your GitHub username.You can also clone the forked repo using the
GitHub CLI
.
To do this, run the following command: -
Setup the Development Environment
Ensure you have the following installed:
Dependency Version Requirement Node.js Version 20 or higher (recommended to use the latest version) npm Latest version (ensure youâre using the most recent release) Now, navigate to the root directory of the project and run:
Once installation done, Run the development server:
or
Now open your browser and navigate to
http://localhost:4321
to view the website.To create a production build of the website, run:
To preview the production build of the website, run:
-
Making your Changes
Before you can make any changes to the code base please go through the
Naming ConventionsSteps to Create a New Branch
Ensure you are on the correct base branch
First, check that youâre on the correct base branch (main
) before creating a new branch.Pull the latest changes
Always pull the latest changes from the remote branch to ensure your branch is up to date.Create a new branch
Use thegit checkout
command to create and switch to a new branch following the naming conventions.Make your changes
Now that youâre on your new branch, you can make the necessary code changes. After completing your changes, stage them for commit.Commit your changes
Write a meaningful commit message that summarizes your changes.Push your changes to the remote repo
Once youâve committed your changes, push your branch to the remote repository. -
Opening a Pull Request
Steps to Open a Pull Request
- Go to the repository on GitHub.
- Click on the Pull requests tab.
- Click on New Pull Request.
- Select the branch that contains your changes targetting the OpenPrepâs
main
branch. - Ensure the
title
follows the naming convention.
Add a Detailed Description
- In the description field of the pull request, provide a detailed explanation of the changes.
- Describe what was changed, why it was changed, and any other relevant details.
- Use the correct way to
link issues
in the description of the PR by updating theXXXXXX
. Do not just add issue numbers everywhere and anywhere you feel like.
Submit the Pull Request:
- After filling out the title and description, click on âCreate pull requestâ.
-
Congratulations! đ
You have successfully contributed to the OpenPrep repository.
Your pull request will be reviewed by the maintainers, and if everything is in order, it will be merged into the main branch. If any reviews or changes are requested by the reviewers then please feel free to resolve them so that maintainers can merge your PR.Thank you for your contribution! đ