Contributions are welcome and will be fully credited.
Please read and understand the contribution guide before creating an issue or pull request.
Hey there! You're probably here because you want to help out. Thanks for joining us!
In this document we'll try to outline how to get started contributing to Onramp, and how to perform common tasks, like keeping your local fork of Onramp up to date.
In order to contribute you'll want to make a "fork" of this repository.
Click the fork button at https://github.com/tightenco/onramp and wait for it to complete.
Once the fork is done, clone your fork to your computer by navigating to a folder you'd like to put the site in, and then replacing [username] in this snippet with your GitHub username and running it from the terminal:
git clone git@github.com:[username]/onramp.gitIn order to keep your fork up-to-date with the original repository, you'll also want to add an extra git "remote" that points to the original repo.
Your fork will already be connected to your local repo as the remote named origin.
Let's add your link to the original Tighten repo by running the following command after navigating to the onramp folder in your local repo:
git remote add upstream git@github.com:tightenco/onrampThis added a remote named upstream that points to Tighten's repo.
You can fetch the upstream branches by running the following command:
git fetch upstream --prune
Now you have this set up, run the following commands to install the dependencies:
composer install
npm installCheck that the .env file exists; if not, copy the .env.example to .env:
cp .env.example .envEach Laravel application needs an unique application key, which can be generated by running the following command:
php artisan key:generate
Next, edit the .env file and fill the DB_ variables with your correct database configuration details.
If you haven't yet created a database, create a new MySQL database (likely named onramp, but you can customize this in .env).
Now, migrate and seed the database:
php artisan migrate:fresh --seedIf prompted, choose that it's a new install.
Using the git remote we set up earlier, we first need to fetch changes that were made upstream:
git fetch upstream --pruneNext, change to your local master branch:
git checkout masterAnd merge the changes that were made upstream into your local branch.
git merge upstream/master --no-ffBefore actually creating a pull request, you have the chance to clean up your code. Remove debug statements, clean up commented code and refactor if needed.
Look to this blog post for how to write a good git commit message.
When you have your changes ready in your own branch on your fork, it's time to create a pull request. Try to describe what kind of changes you have made and why you have made them. This helps us in understanding why you are suggesting this change and what your reasoning behind it is.
Look to this blog post for how to create a great pull request.
- You can add an issue referencing the content you'd like to add
- Open or comment on an issue before starting to code to ensure @mattstauffer (or someone else) isn't already working on it and that you fully understand the goals and scope
- Once ready to code, fork the repo, and PR your changes in, referencing the original issue number
- Please check out the translation guide.
- Ask any question about how to contribute to or use Onramp in the issues here