BestFit-Shared
BestFit-Shared is part of the BestFit codebase
Current services (in use)
Front-end
API
Shared code for individual parts of the bigger tool that considers several categories to see if a study fits well.
NPM package
As of January 2019 BestFit-Shared was switched from a submodule to an NPM package.
All the good practices for packages in general must be followed for BestFit-Shared
as well.
General workflow
Depending on the changes that you want to implement, you might want to work with
only BestFit-Shared, or maybe AdmissionChance-Answer and BestFit-Shared. Or perhaps
you're including all the BestFit-related FE repositories at the same time.
When you work on any of the FE microservices along with BestFit-Shared, it's useful
that BestFit-Shared is on the right version not only for your local deployment, but
for the end-to-end tests that run inside pull requests as well.
Therefore, when you first open up a pull request in any of the FE microservice
repositories, make sure to install BestFit-Shared on the branch that you have open,
like this:
npm install git+ssh://github.com/studyportals/bestfit-shared.git#ua-my-branch --save
This way you can update the package with the latest changes without bumping it to
a newer version. Travis won't be able to run the end-to-end tests though, because
it does not have access to pull the changes directly from GitHub. For developing
and making your new changes working, this way of installing the most recent changes
works nicely though.
Then, when your version of BestFit-Shared works as it should and you're all done to
wrap things up and merge to develop all your changes in the repositories you're working on,
you can bump the BestFit-Shared version and merge your changes for this package.
Inside the FE microservices you can replace the BestFit-Shared branch version with the
new latest version, and that's it.