Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run project #53

Open
astanley86 opened this issue Nov 21, 2022 · 4 comments
Open

Unable to run project #53

astanley86 opened this issue Nov 21, 2022 · 4 comments
Assignees

Comments

@astanley86
Copy link

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
image

image
image
image

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?

@gilmcquillan
Copy link
Contributor

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.
image

@gilmcquillan gilmcquillan self-assigned this Nov 29, 2022
@astanley86
Copy link
Author

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:

image

And what is configured with Procore sandbox environment:
image

The error looks like this:
image

@astanley86
Copy link
Author

I think my issue is related to webpack not generating the files. I have nothing under "server/public/" the directory doesn't even exist.

@gilmcquillan
Copy link
Contributor

I've updated the PR (#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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants