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 the image from Docker Hub using Docker Compose
98
86
99
-
NOTE: existing images and containers must be updated shortly after every new official PC release; otherwise,
100
-
the web app will be still using some old metadata while getting new pathway data from the web service at http://www.pathwaycommons.org/
87
+
NOTE: existing images and containers must be restarted shortly after every new official PC release; otherwise, the web app will be still using some old cached data while getting new pathway data from the web service at http://www.pathwaycommons.org/
101
88
102
-
Pathway Commons maintains a stable [Docker Hub](https://hub.docker.com/) image for
103
-
[app-ui](https://hub.docker.com/r/pathwaycommons/app-ui/) that is automatically built each time a commit is pushed
104
-
to the master branch on GitHub (other versions can be also built automatically or on-demand and pushed to that
89
+
Pathway Commons maintains a stable [Docker Hub](https://hub.docker.com/) image for
90
+
[app-ui](https://hub.docker.com/r/pathwaycommons/app-ui/) that is automatically built each time a commit is pushed
91
+
to the master branch on GitHub (other versions can be also built automatically or on-demand and pushed to that
105
92
PC repository on Docker Hub).
106
93
107
94
To run the app using the pathwaycommons/app-ui:master image, execute:
@@ -118,7 +105,7 @@ Notes:
118
105
119
106
### Custom build/rebuild/run with Docker Compose
120
107
121
-
Create .env file in this directory and define there yours: PC_VERSION, NODE_ENV, PC_URL, FACTOID_URL, PORT options;
108
+
Create .env file in this directory and define there yours: NODE_ENV, PC_URL, FACTOID_URL, PORT options;
122
109
execute:
123
110
124
111
```sh
@@ -129,7 +116,7 @@ docker-compose -f dev-compose.yml up -d
129
116
130
117
## Testing
131
118
132
-
All files `/test` will be run by [Mocha](https://mochajs.org/). You can `npm test` to run all tests, or you
119
+
All files `/test` will be run by [Mocha](https://mochajs.org/). You can `npm test` to run all tests, or you
133
120
can run `npm run test ./test/path/to/test` to run specific tests.
134
121
135
122
[Chai](http://chaijs.com/) is included to make the tests easier to read and write.
@@ -140,7 +127,7 @@ can run `npm run test ./test/path/to/test` to run specific tests.
140
127
Students who work on the repo should follow these instructions for each feature that they work on:
141
128
142
129
1. Initial preparation (only needed once)
143
-
1.[Make a fork on Github](https://github.com/PathwayCommons/app-ui#fork-destination-box) (if you haven't already)
130
+
1.[Make a fork on Github](https://github.com/PathwayCommons/app-ui#fork-destination-box) (if you haven't already)
144
131
under your personal account
145
132
1. Check out the fork repo: `git clone https://github.com/myusername/app-ui.git`
146
133
1. Change the directory to the project: `cd app-ui`
@@ -156,15 +143,15 @@ Students who work on the repo should follow these instructions for each feature
156
143
1. Select `Merge into Current Branch`
157
144
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.
158
145
1. Using the console: `git checkout -b name-of-feature`
159
-
1. Using GitUp: Right click the `HEAD` commit (which should be the top commit of your local `development` branch),
146
+
1. Using GitUp: Right click the `HEAD` commit (which should be the top commit of your local `development` branch),
160
147
then select `Create Branch...`
161
148
1. Make commits as you're working on your feature:
162
149
1. Using the console: `git commit -am "My descriptive commit message"`
163
150
1. Using GitUp: Use the `Select View` tab (`View > Commit`)
164
151
1. Stage the files
165
152
1. Add a descriptive commit message
166
153
1. Press the `Commit` button
167
-
1. Periodically (at least once just before making a pull request) make sure your feature branch takes into account
154
+
1. Periodically (at least once just before making a pull request) make sure your feature branch takes into account
168
155
the latest changes other people have made:
169
156
1. Make sure your `development` branch is up-to-date:
170
157
1. Using the console: `git checkout development && git merge pc/development`
@@ -174,11 +161,11 @@ the latest changes other people have made:
174
161
1. Make sure your feature branch is up-to-date:
175
162
1. Using the console: `git checkout name-of-feature`, `git merge development`
176
163
1. Using GitUp:
177
-
1. Make sure your `HEAD` is the newest commit of your feature branch: Right-click the latest commit
164
+
1. Make sure your `HEAD` is the newest commit of your feature branch: Right-click the latest commit
178
165
on `name-of-feature` branch and select `Checkout "name-of-feature" Branch`
179
166
1. Right-click the latest commit of the `development` branch and select `Merge into Current Branch`
180
167
1. Push your commits to GitHub:
181
-
1. Note: You can push as often as you'd like so that your code is backed up on GitHub. You *must* push everything
168
+
1. Note: You can push as often as you'd like so that your code is backed up on GitHub. You *must* push everything
182
169
before you make a pull request.
183
170
1. Using the console: `git push`
184
171
1. Using GitUp: `Remotes > Push Current Branch`
@@ -194,7 +181,7 @@ the latest changes other people have made:
194
181
1. Merge the latest dev into the release branch.
195
182
1. Make sure the tests are passing: `npm test`
196
183
1. Make sure the linting is passing: `npm run lint`
197
-
1. Bump the version number with `npm version`, in accordance with [semver](http://semver.org/). The `version` command
184
+
1. Bump the version number with `npm version`, in accordance with [semver](http://semver.org/). The `version` command
198
185
in `npm` updates both `package.json` and git tags, but note that it uses a `v` prefix on the tags (e.g. `v1.2.3`).
199
186
1. For a bug fix / patch release, run `npm version patch`.
200
187
1. For a new feature release, run `npm version minor`.
0 commit comments