mohamedsamara / mern-ecommerce

:balloon: Fullstack MERN Ecommerce Application
https://mern-store-gold.vercel.app
MIT License
1.63k stars 770 forks source link

Access to the admin page #208

Closed YassineFarih20 closed 2 weeks ago

YassineFarih20 commented 11 months ago

after runnig this npm run seed:db [emai-emailexample.com] [password-passwordexample.com], when i want to login to my count i stay on the same page like if the login button doesn't work.

hasannasrul commented 11 months ago

Check the console for error.

it is trying to find the host on localhost:8080 because in .env.example file CLIENT_URL is setup in that way. there you can change the port to 3000 and it will resolve your issue

buddhathemanoj commented 7 months ago

@hasannasrul do you have dummy data for the categories , products , brands , i have added products and categories but its not fetching , but for admin its showing products in dashboard

mohamedsamara commented 2 weeks ago

@YassineFarih20 I'm not sure what errors you see on your end but make sure your database is populated with dummy data. See guide.