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: The very first thing one should do is to fork the main repository.
- git clone https://github.com/
openlibraryenvironment- user/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:
- [Note this is the url of your forked repository]
- This will create a folder ole in your local workspace.
- Switch to the newly created folder and do the following;
- List all the branches by using git branch -a
- One of the listed entries should have an
* next - astreix next to it indicating that is the current 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
- 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
- List all the branches by using git checkout -a
- 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.
- For more granularity, you can create feature branches and work on those feature branches.
- Create a feature branch by using git branch "feature or issue name"
- Switch to the new feature branch by using git checkout "feature or issue name"
- 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. Alternatively you could you use your favorite IDE to push your changes to your public repository.
- 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.
- Core Committers
- Review pull requests
- Direct Diff
- Fetch changes locally
- Review
- Mergemachine. By default it is master branch.
- Switch to develop branch by using git checkout develop. The OLE core team works on develop branch and so if you need to create any pull requests, its better to be on the same branch as the main ole repository's active development line.
- Making changes to your local copy of OLE
- Once changes have been authored to your local copy of OLE you can commit and push your changes up to your public repository by doing the following; (Alternatively, you could you use your favorite IDE to commit & push changes to your local repository);
- commit: git commit -m "custom message"
- push: git push origin develop
- Creating a Pull Request
- Once you have pushed your changes to your public repository, you can create a "Pull Request" to notify the core team of your intention to either contribute or get your code merged (other team developers).
- On Github, under your repository, switch to develop branch and then you can click the green button "Pull Request", add comments and create the request.
- Once the Pull Request is created, the core team is notified of your intentions, and someone will review and merge as appropriate.
- Core Committers/Reviewers
- Pull Requests
- Direct Diff on Github - Only to be used if there are no conflicts; Generally to be avoided
- Fetch changes locally - Recommended
- Review: In order to review a pull request or someone else's changes, first you need to add the public url the person's repository whose changes you would like to fetch
- Switch to your forked workspace
- git fetch "url of the team/contributor's public OLE url"
- Switch to the appropriate branch (develop in our case)
- git checkout develop
- git
- Push
Related articles
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 5 |
---|
spaces | OLE |
---|
sort | modified |
---|
showSpace | false |
---|
reverse | true |
---|
type | page |
---|
labels | Installation Code |
---|
|