-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add "create listings" for the admin page #9
base: main
Are you sure you want to change the base?
Add "create listings" for the admin page #9
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the updates Jolyn. Can I ask for your help to fetch new changes and make changes to the following?
-
For your apiRequest in "CreateListing.tsx", please change from "apiRequest("listings", "POST", "register",...)" to "apiRequest("product", "POST", "create", ....)".
-
From the data you submit to the apiRequest, I see that you are submitting these data
"title,
description,
images,
sizingChart,
specifications,
deliveryMethods,
collectionInfo,"
to the database, thus please help to ensure you make amendments to the validation schema in "products.js" file under "server/src/models/products.js" to ensure there is no error when writing the data to the database.
Thank you!
…merce_Website_2025 into branch-Create-Listings * 'main' of https://github.com/NUS-Fintech-Society/SD_ECommerce_Website_2025: (26 commits) Implemented upload image, navigate image, post drafts Implemented upload image, navigate image, post drafts Edited container css and added back button Fixed Edit listing feature and backend data storage Create Request for Admin Role Function Updated build command Changed server's npm run build command edit and create listings edit and create listings Add comments for clarity Add profile picture feature Add address to schema and provider Replaced Alert with Modal component update api endpoint and use alert dialogs for success and error Add delete account functionality set up chakra ui WIP: Save changes for create-and-edit-listings feature Add comments for clarity Add loading state to confirm update button Connect User Update APIs to frontend ... # Conflicts: # client/src/components/Admin.tsx # client/src/index.tsx
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
No description provided.