neo4j-graphacademy / app-python

https://graphacademy.neo4j.com/courses/app-python
56 stars 92 forks source link

cannot Register and show data from neo4j #3

Closed Liu131452 closed 2 years ago

Liu131452 commented 2 years ago

The front-end data cannot be imported, the specific things in the Neo4j database are not displayed, and the registration cannot be performed.

For example "Person" module, F12 debugging shows "Failed to load resource: net::ERR_CONNECTION_REFUSED localhost:3000/api/people?limit=4:1 ", the front-end URL is "http://127.0.0.1:5000/people" ,, I don't know why.

When I try to update APP_PORT in .env to 3000 , it will report an error and cannot do this. Is it caused by regional network problems, or is it caused by no modification in some places?

image

Liu131452 commented 2 years ago

image

adam-cowley commented 2 years ago

I updated the course yesterday, so if you head to the setup lesson it will explain the additions to .env as mentioned in Issue #2. If you run a git fetch and git merge origin main then it'll pull down any changes since you first cloned the repository.

I've also noticed that if you click the link in the prompt to open http://127.0.0.1:3000 rather than http://localhost:3000 you get the CORS errors in your second statement. I will fix this in the long term, but if you open http://localhost:3000 you won't see those errors.

Liu131452 commented 2 years ago

Wow , thanks your update . Now I can visit the site by http://localhost:3000 and see data. image

adam-cowley commented 2 years ago

Great, I'm glad that's sorted. Good luck with the course!