ucsb-cs148-s21 / 1pm-t6-ucsb-poll

Allows anyone with a UCSB email to vote on virtually anything.
MIT License
2 stars 4 forks source link

database and navbar changes #29

Closed jasunchen closed 3 years ago

jasunchen commented 3 years ago

Resolves #19 , partially resolves #15

-- fixed problem with get functions in database. All get/post requests should work normally now. -- added admin check to navbar

zhengyingl commented 3 years ago

Not quite sure if it is my computer's problem, when I click log in , i will get a page with error code "DNS_PROBE_FINISHED_NXDOMAIN". Thank you.

jasunchen commented 3 years ago

Not quite sure if it is my computer's problem, when I click log in , i will get a page with error code "DNS_PROBE_FINISHED_NXDOMAIN". Thank you.

It's working on localhost and heroku for me. Are you logging in with your ucsb.edu account? And if you are on localhost, you might have to npm install again.

Someone else please check to see if it's working

dshamtob commented 3 years ago

~It worked after you did the deployment on heroku, not sure what's the problem before(before is like when i click login button on navigation bar, there is no "log in page"). All looks good for me right now.~

Same issue happened one more time, sorry, I think it may be my problem. Need others to check this.

It works for me. Make sure you are using the team Heroku, that's the only Heroku I set the environment variables for. Also, on localhost remember to create the .env.local file I posted about in Slack a while back.