Unable to run project
I have followed the README steps of running yarn install and cp packages/server/.env.example packages/server/.env and saving the variables with my sandbox app configuration. Is the next step to navigate to localhost:3000 ? When I go there I am prompted to login which then returns me to my localhost:3000/app.js .
Not sure if this is related or not but I get a "Port 3000 is already in use" when I try to start this project initially. I am manually doing a taskkill /PID command to kill whatever is running on 3000 (which must be this same project??) and then I am able to run yarn run start


I am trying to understand the build steps and even understand what this project is doing. I am new to React but have experience with Angular and Vue. It looks like the React app is not built. Am I missing a step?
I made some updates to the README.md in this PR https://github.com/procore/js-sdk-sample-app/pull/54/files I just ran through it on my machine and it worked.
Can you provide the contents of your .env? Make sure and remove the CLIENT_ID and CLIENT_SECRET before adding to this issue.
Your redirect URI should look like REDIRECT_URI=http://localhost:3000/oauth/procore/callback. This value should be in the Redirect URI list on the developer portal.
It should contain the REDIRECT_URI value in the list. Make sure you add it to the correct environment.

Thanks for the reply! I'm curious if it is something to do with my environment. I am on a Windows 10 with Node v16.17.1
I find it curious that I have to terminate the process to get around the "PORT 4000" is already running. I changed to new port in case there was something going on with port 3000.
I believe the readme could be improved by including to install lerna globally. Also I modified the package.json scripts to be SET NODE_ENV... because I get an error on Windows when trying SET NODE_ENV=production webpack
Here is my .env file:

And what is configured with Procore sandbox environment:

The error looks like this:

I think my issue is related to webpack not generating the files. I have nothing under "server/public/" the directory doesn't even exist.
I've updated the PR (https://github.com/procore/js-sdk-sample-app/pull/54) to include a Dockerfile and corresponding docker-compose file. Please see the README.md for instructions on how to use it.
Let me know if this works.