Why?
-
Fork the original repo into your GitHub account
-
Clone the forked repo from your GitHub account to your local machine
git clone https://github.com/<your-gh>/yearn.fi.git
-
Set origin to your fork. This is where you push your changes to. This is done automatically by the step above.
git remote add origin https://github.com/<your-gh>/yearn.fi
-
Set upstream to original repo.
git remote add upstream https://github.com/yearn/yearn.fi.git
-
Optional: Create
.env
file in root directory of repo then copy contents of.env.example
to.env
and replace values with your own keys. If you do not do this the default values fromnext.config.js
will be used.cp .env.example .env
- Run
yarn
- Run
yarn run dev
- Open the browser and navigate to
https://localhost:3000
This project can be run with Docker.
- Build the image:
docker build -t [name-of-your-container] .
- Run the container:
docker run -p 3000:3000 [name-of-your-container]
- Open the browser and navigate to
https://localhost:3000
- Create a new local branch from upstream/main for each PR that you will submit
git fetch git checkout -b <your branch name> upstream/main
- Commit your changes as you work
git add . git commit -S -m "message"
- Commits are squashed when PR is merged so rebasing is optional
- When ready to push
git fetch git merge upstream/main git push origin <branch-name>
- Go to your GitHub and navigate to your forked repo
- Click on
Pull requests
and then click onNew pull request
- Click on
compare across forks
- Click on
compare:
and select branch that you want to create a pull request for then click oncreate pull request