Our website is open source! There is a lot of info you need to know to contribute, including best practices when coding, the process of code reviews, and (especially if you're new to web dev or git) set up. Please read through this whole README if you would like to contribute to our package!
- Make sure you have
gitinstalled. Then open a terminal ingit bash(this should be an app on your computer). - Make sure you have
node.jsinstalled. You should install the long term support (LTS) version that is recommended. Please make sure yournodeversion is at least20.11.1and yournpmversion is at least10.7.0. You can check this by running the following command ingit bash:
node -v && npm -v
- Create a GitHub account and follow these steps for configuring
gitto your GitHub. Please make sure you've done these steps correctly. You can verifygitis connected to the right account by running the following command ingit bash. This should print out the name you set and the email address associated with your GitHub account.
git config --get user.email && git config --get user.name
- Branch the repository. Please navigate to the repository code homepage and find the Fork button. Then create a fork with the default settings.
- Clone your branch. Navigate to the directory you would like to have the files in in your terminal. If you're unfamiliar with how to do this, please see this guide. Once you are in the desired directory, you can likely clone your repository by running the below command. If you see the following error:
fatal: repository 'https://github.com/<YOUR_GITHUB_USER_NAME>/PCS-Website.git' not foundthen you either didn't branch the repository correctly or named it something else thanPCS-Website.
git clone https://github.com/<YOUR_GITHUB_USER_NAME>/PCS-Website.git
- Install dependencies. Navigate to the newly-cloned package via terminal by running
cd PCS-Website(or a different package name/path if you named it differently or switched directories). Once inPCS-Website, run the following commandnpm install && npm run dev - Make sure the site runs correctly. A link should appear in your terminal that looks like this
Local: http://localhost:5173/. Open that link in your browser (keep in mind your link may not have5173) at the end. You should see the current draft of the PCS website running!