- Not Yet a Contributor
- Already a Contributor
- Prerequisite
- Cloning
- Changing Branches
- Updating a Branch
- Installation
- Local Development
- Issues Or questions
If you're not a contributor you can contact an admin on Slack to become a contributor or you can fork the repo and contribute from there.
- How to fork
- Afterwards, clone the repo from your fork by copying the url provided
- NOTE: Unless you understand SSH, make sure you clone using HTTPS. It should say Clone with HTTPS
- Check Installation guidelines if you're unsure how to clone.
If you're already a contributor, then follow the instructions below.
These are the basic requirements to get the project running on your machine
- git (to clone the repository and push changes to the repo)
- yarn (to install packages)
Getting a copy of the project onto your machine.
# clone the repo using https
$ git clone https://github.com/inland-empire-software-development/landing.git
#for people who fork, it should look like this
$ git clone https://github.com/your_github_username/landing.git
The dev
branch has the most recent activity and updates to work with.
# check current branch and branches
$ git branch
# change branches
& git checkout dev
# directly updates branch to the latest changes
$ git pull origin dev
If you have forked the repo, then you'll have to update to the latest activity from the main repo. This requires setting up a remote origin with the main repo then fetching the updates.
# add main repo as 'upstream'
$ git remote add upstream https://github.com/inland-empire-software-development/main.git
# fetch changes
$ git fetch upstream
# merge changes
$ git merge upstream/master
You can use git pull
instead of git fetch
if you want to apply the changes directly, which is ideal if work just has begun. Additionally, you may also want to fetch changes from the main repo's branch as well, such as dev
.
# fetch changes from a branch
$ git fetch upstream dev
# merge changes to current branch
$ git merge upstream/dev
This installs all the packages required to run the project.
NOTE: Yarn is required.
# install packages before running the app
$ yarn install
NOTE: This make take a few minutes to start up. yarn dev
will host a local server with the website, and will automatically rebuild and hotload changes.
# make sure you are in the `./main` project directory
$ yarn dev