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

Assessment completed from Armando Jimenez #6

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

220armandoJimenez
Copy link

Tasks are completed

I did have to update the package.json
in scripts > api
from
"api": "nodemon --watch ./server --watch ./configs --exec 'node ./server/index.js'",
to
"api": "npx nodemon --watch ./server --watch ./configs --exec "node ./server/index.js"",
this prevent the node is not recognized error


in server > server.js
line 34 I had to update the Access-Control-Allow-Origin for the API call to work
from
res.header('Access-Control-Allow-Origin', foundOrigin)
to
"res.header('Access-Control-Allow-Origin', "http://localhost:3000")"

foundOrigin kept comming up as undefined, and made the decisions to focus on the assignment

erictruong-sv added a commit to erictruong-sv/keg-tech-assessment that referenced this pull request Jun 10, 2024
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

Successfully merging this pull request may close these issues.

1 participant