This site was developed with GatsbyJS and serves as the home page for San Diego Tech Hub.
Working on your first Pull Request? You can learn how from this free series How to Contribute to an Open Source Project on GitHub
- Fork the project (this copies the SDTH Website repository to your GitHub account)
-
Clone your fork (copies your GitHub SDTH Website repository to your local computer)
git clone https://github.com/[your-github-username]/sdth-site.git
-
Confirm you are in the right directory in terminal:
cd sdth-site
-
Add an
upstream
remote for keeping your local repository up-to-dategit remote add upstream https://github.com/san-diego-tech-hub/sdth-site.git
-
Run
cp env.default .env.dev
-
Grab the environment variables from a developer in the slack channel
-
Run
nvm use
use the version of node identified in.nvmrc
-
Run
npm ci
to install the project dependencies -
Run
npm start
to start your dev environment
-
Make sure you are on the
development
branch, and you have pulled the latest changesgit checkout development && git pull upstream development
-
Install any new dependencies:
npm ci
-
Create a new branch off of the
development
branchgit checkout -b [NEW BRANCH NAME]
Branch naming conventions:
fix/[BRANCH]
for bug fixes,feature/[BRANCH]
for new features,dev/[BRANCH]
for non-user-facing changes. The[BRANCH]
portion should be kebab case. For example, if you want to update the README.md file, your branch could be calleddev/update-readme
-
Make changes and commit them.
git add . && git commit -m "[YOUR COMMIT MESSAGE]"
The subject of a commit message (the first line) should be 72 characters or less. If you need more room for a longer explanation of your changes, you can add a blank line below the subject and write a commit body. The commit message should be in present-imperative tense ("Update README.md" rather than "Updates" or "Updated").
-
Push your branch to your fork:
git push -u origin [BRANCH NAME]
-
Open a new pull request against the
development
branch from your fork using the GitHub user interface