JadnjungSpector / Campus_Newbie

0 stars 0 forks source link

Network error when registering and logging in. #4

Open StevenT07 opened 6 days ago

StevenT07 commented 6 days ago

After doing as much setup as I could see was needed since the documentation seemed to be quite outdated (not sure if a .env is necessary despite being mentioned), I had the frontend running after calling npm start in the CampusReactApp/package folder and the backend server running after calling node server.js in the CampusReactApp/package/backend folder.

However, attempting to register gave me this error image. Thinking that this was because I had clicked the register button a couple of times (some feedback when pressing register would be good) and that the first request had gone through, I went to the login page. image I get the same message on the login page.

brigit-parrish commented 6 days ago

Are you pulling from master? This is an old login on our old repo thats not available on master.

StevenT07 commented 6 days ago

Yes, I pulled from master.

brigit-parrish commented 6 days ago

can you send a screenshot of your repo

StevenT07 commented 6 days ago

image

brigit-parrish commented 6 days ago

can u show a picture of your local host

brigit-parrish commented 6 days ago

then send a screenshot of the directories of src after you opened it up

brigit-parrish commented 6 days ago

We are just a bit confused because the login should be within profile and our most up to date master doesn't give access to this login that was outside the CampusReactApp

StevenT07 commented 6 days ago

Here's what my directories for src looks like. image

I'm not sure what you mean by localhost? Do you mean a picture of the website?

brigit-parrish commented 6 days ago

yes a picture of the website plz

StevenT07 commented 6 days ago

If it helps to diagnose, I ran npm start from the CampusReactApp folder. Here's the full login page screenshot image

elisekingston commented 6 days ago
Screenshot 2024-11-19 at 2 03 19 PM

this is what the log in should look like

StevenT07 commented 6 days ago

We all have the old page, is this on a particular branch?

StevenT07 commented 6 days ago

Or are we running from the incorrect directory?

brigit-parrish commented 6 days ago

the directory you should be running in is src/CampusReactApp/package

brigit-parrish commented 6 days ago

can you confirm this is the directory?

brigit-parrish commented 6 days ago

and then you have server running as well on a separate terminal right? it should be src/CampusReactApp/package/backend and run node server.js

StevenT07 commented 6 days ago

Ok, we have the correct landing page now after npm start'ing in the package directory

brigit-parrish commented 6 days ago

slayyyyyy

StevenT07 commented 6 days ago

image image image

But still having issues signing up?

brigit-parrish commented 6 days ago

and the server is running rn first before launching the npm start? im so sorry our read me is bad

StevenT07 commented 6 days ago

The first screenshot is of the backend server log so it was running

brigit-parrish commented 4 days ago

ah thank you, I am a bit stumped on why this is occuring. it is either our database doesn't like ur ip address or we need you to run this command as well in that same directory npm install mongodb@latest. Is this being replicated on other users on your team as well?