Background:
The neotoma node api cannot be run locally, which is a huge impediment to testing and development. Initially, we believed that this was a db provisioning problem. However, based on input from Steve and development of a lightweight prototype that successfully connected to the db, we confirmed that the issue had to be in the api code.
Solution:
Bump core dependency versions (e.g., pg-promise), add db connection test, and enable the api to run locally. Many of the dependencies that are currently in dev and prod are deprecated. It's somewhat puzzling that they continue to work, but this could relate to the version of node js running on the server.
Before Merging:
I would like to check this branch out on the dev api server and run an npm-install to ensure that that environment is capable of supporting the updated dependencies. @SimonGoring -- do you see any issue with this?
Note:
The db accounts that are setup for Simon and I are able to connect from any machine (assuming VPN connection). This is not true for the neotomawsreader user.
@SimonGoring cc @IceAgeEcologist
Background: The neotoma node api cannot be run locally, which is a huge impediment to testing and development. Initially, we believed that this was a db provisioning problem. However, based on input from Steve and development of a lightweight prototype that successfully connected to the db, we confirmed that the issue had to be in the api code.
Solution: Bump core dependency versions (e.g., pg-promise), add db connection test, and enable the api to run locally. Many of the dependencies that are currently in dev and prod are deprecated. It's somewhat puzzling that they continue to work, but this could relate to the version of node js running on the server.
Before Merging: I would like to check this branch out on the dev api server and run an
npm-install
to ensure that that environment is capable of supporting the updated dependencies. @SimonGoring -- do you see any issue with this?Note: The db accounts that are setup for Simon and I are able to connect from any machine (assuming VPN connection). This is not true for the neotomawsreader user.