USDAForestService / NRM-Grants-Agreements

The focal point for an 18F/TTS collaboration with the USFS Natural Resource Manager (NRM)
Other
8 stars 2 forks source link

"Local development with Docker" isn't functioning #416

Open caleywoods opened 2 years ago

caleywoods commented 2 years ago

Describe the bug The steps outlined in the "Local development with Docker" section of the README do not result in a functional local development environment. After performing docker compose up in Step 1, I receive two errors related to node_modules missing in the API/Web container(s).

To Reproduce

  1. Clone the NRM-Grants-Agreement to your computer and change directory into the newly cloned project folder.
  2. Follow Step 1 of the "Local development With Docker" section of the README and execute the command docker compose up.
  3. Observe that you receive errors on the screen (and in the log) from api_1 and web_1 shells stating that nodemon and ng commands were not found. The errors point to the fact that a package.json exists but that the node_modules directory is not present.

Expected behavior A successful execution of step 1 is expected without the listed errors being present in the terminal/log. The user is ready to continue on to the second step of the README.

Actual behavior Errors are encountered as part of step 1 related to node_modules missing. These errors can be seen in this terminal output log.

Desktop (please complete the following information):

Additional context An npm install somewhere in the container setup process might take care of this bug, that will at least resolve the missing node_modules folder.