Closed AmanNegi closed 1 year ago
may i try to help you @AmanNegi
Sure, feel free to contribute. ✨🌝 Let me know if you need any help :)
may i try to help you @AmanNegi
You may check the contributing documentation for setting up project in your local environment. 😁
how to be able to login?
how to be able to login?
@AmanNegi
Hey @bymunajat currently there is no signup feature in the interface. You can utilize the API endpoint /signup
like this:
(POST) http://localhost:3000/api/auth/signup
{ body: { name, email, password, userType, phone } }
Start the backend
and make the following request using any client (POSTMAN, THUNDERCLIENT) and a user will be created with the provided credentials. Let me know if anything is still missing.
Hey @bymunajat currently there is no signup feature in the interface. You can utilize the API endpoint
/signup
like this:(POST) http://localhost:3000/api/auth/signup { body: { name, email, password, userType, phone } }
Start the
backend
and make the following request using any client (POSTMAN, THUNDERCLIENT) and a user will be created with the provided credentials. Let me know if anything is still missing.
sorry I'm having trouble not being able to log in @AmanNegi
@bymunajat Follow the steps below and you can test directly on the remote website.
frontend/react
..env
file and add the following line
VITE_API_URL="https://agromillets.adaptable.app/api "
npm install
npm run dev
localhost:5173
and you will enter the login page.UserType: Customer
- Email: customer@gmail.com
- Password: password
NOTE: Google Login/SignUp will not work until you add the
VITE_GOOGLE_CLIENT_ID
to the.env
file.
Fixed via #105
Issue
Currently, we re-fetch all the items when we change the filter. However, we sort them in the front end itself. Instead, sort the list of items as we already store them to render the items.
Files to be changed
fronted/react/src/pages/shop/presentation/Shop.jsx