The information below pertains to developers and other coding enthusiasts who would like to set up a running instance of the Open Library Environment project from Github.
Step-by-step guide
- Checkout OLE code from github
- Create a local workspace where you would want to checkout the OLE codebase
- clone the remote repository by issuing the following command: git clone https://github.com/openlibraryenvironment/ole.git
- Once its cloned, you will see a folder with the name "ole" created.
- Switch to the appropriate branch
- Check which branch is active in your local repository by issuing the following command: git branch -a
- One of the listed entries should have an * next to it indicating that is the active branch currently on your local box.
- You will need to switch to the "develop" branch. As a best practice, we push our changes to the develop branch.
- Issue the following command to switch to the develop branch: git checkout develop
- Check which branch is active in your local repository by issuing the following command: git branch -a
- Launch your favorite IDE and start OLE (IntelliJ IDEA instructions- coming soon!)
- Ongoing Development
- Fork your copy
- git clone https://github.com/user/ole.git
- Make changes to your local copy
- Switch to develop branch by using git checkout develop. This is to ensure when pull requests are created, they will be against the develop branch in the main repository.
- Push changes to your forked repository
- You can work on changes, commit and push the changes to your own public repository. The command to use would be git commit -m "some message" followed by git push origin develop
- Create a pull request
- You can visit github.com and go to the ole repository under your username.
- Click on the pull request button to initiate a pull request.
- Once a pull request is created, one of the core committers will review and merge the changes to the main line.
- Fork your copy
- Core Committers
- Review pull requests
- Direct Diff
- Fetch changes locally
- Review
- Merge
- Push
- Review pull requests
Related articles