You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### Run image hosted on Docker Hub using Docker Compose
88
+
89
+
Pathway Commons maintains a [Docker Hub](https://hub.docker.com/) image for [app-ui](https://hub.docker.com/r/pathwaycommons/app-ui/) that is automatically built each time a commit is pushed to GitHub.
90
+
91
+
To run the GitHub development branch:
92
+
93
+
```sh
94
+
docker-compose --file docker-compose.yml up --detach
95
+
```
96
+
97
+
Access the app instance at port `9090`.The default configuration declared in `docker-compose.yml` also runs a [rethinkdb](https://hub.docker.com/_/rethinkdb/) image; access the UI at port `8020`.
98
+
99
+
Notes:
100
+
- References:
101
+
-[Getting started with Docker Compose](https://docs.docker.com/compose/gettingstarted/)
102
+
64
103
65
104
## Testing
66
105
@@ -69,6 +108,53 @@ All files `/test` will be run by [Mocha](https://mochajs.org/). You can `npm te
69
108
[Chai](http://chaijs.com/) is included to make the tests easier to read and write.
70
109
71
110
111
+
## Devloping a feature and making a pull request
112
+
113
+
Students who work on the repo should follow these instructions for each feature that they work on:
114
+
115
+
1. Initial prepartion (only needed once)
116
+
1.[Make a fork on Github](https://github.com/PathwayCommons/app-ui#fork-destination-box) (if you haven't already) under your personal account
117
+
1. Check out the fork repo: `git clone https://github.com/myusername/app-ui.git`
118
+
1. Change the directory to the project: `cd app-ui`
119
+
1. Check out the `development` branch: `git checkout -b development origin/development`
120
+
1. Add the `pc` remote: `git remote add pc https://github.com/PathwayCommons/app-ui.git`
121
+
1. Make sure you have the latest code on the main PathwayCommons repo:
122
+
1. Using the console: `git fetch pc`
123
+
1. Or using GitUp: `Remotes > Fetch All Branches`, `Remotes > Fetch All Tags`
124
+
1. Make sure your `development` branch is up-to-date:
125
+
1. Using the console: `git checkout development && git merge pc/development`
126
+
1. Using GitUp:
127
+
1. Right-click the commit that `pc/development` points to
128
+
1. Select `Merge into Current Branch`
129
+
1. Make a feature branch for the new feature or change you are working on. Make sure to give your branch a clear, meaningful name.
130
+
1. Using the console: `git checkout -b name-of-feature`
131
+
1. Using GitUp: Right click the `HEAD` commit (which should be the top commit of your local `development` branch), then select `Create Branch...`
132
+
1. Make commits as you're working on your feature:
133
+
1. Using the console: `git commit -am "My descriptive commit message"`
134
+
1. Using GitUp: Use the `Select View` tab (`View > Commit`)
135
+
1. Stage the files
136
+
1. Add a descriptive commit message
137
+
1. Press the `Commit` button
138
+
1. Periodically (at least once just before making a pull request) make sure your feature branch takes into account the latest changes other people have made:
139
+
1. Make sure your `development` branch is up-to-date:
140
+
1. Using the console: `git checkout development && git merge pc/development`
141
+
1. Using GitUp:
142
+
1. Right-click the commit that `pc/development` points to
143
+
1. Select `Merge into Current Branch
144
+
1. Make sure your feature branch is up-to-date:
145
+
1. Using the console: `git checkout name-of-feature`, `git merge development`
146
+
1. Using GitUp:
147
+
1. Make sure your `HEAD` is the newest commit of your feature branch: Right-click the latest commit on `name-of-feature` branch and select `Checkout "name-of-feature" Branch`
148
+
1. Right-click the latest commit of the `development` branch and select `Merge into Current Branch`
149
+
1. Push your commits to GitHub:
150
+
1. Note: You can push as often as you'd like so that your code is backed up on GitHub. You *must* push everything before you make a pull request.
151
+
1. Using the console: `git push`
152
+
1. Using GitUp: `Remotes > Push Current Branch`
153
+
1. When your feature is done and ready to be reviewed, make a pull request:
154
+
1. Go to your fork on GitHub, e.g. https://github.com/myusername/app-ui
155
+
1. Select your feature branch
156
+
1. Click the `New pull request` button
157
+
1. Give your pull request a clear title and a meaningful description
72
158
73
159
## Publishing a release
74
160
@@ -80,4 +166,3 @@ All files `/test` will be run by [Mocha](https://mochajs.org/). You can `npm te
80
166
1. For a breaking API change, run `npm version major.`
81
167
1. For a specific version number (e.g. 1.2.3), run `npm version 1.2.3`.
0 commit comments