CUMart is an e-commerce store exclusively for Covenant University students. Link to the frontend - Backend build: https://jolly-florentine-15181f.netlify.app/
POST /signup
: Register a new student account. (Endpoint:studentRegister
)POST /login
: Student login. (Endpoint:studentLogin
)GET /studentinfo
: Get student information. (Endpoint:studentInfo
)PUT /editaccount
: Edit student account. (Endpoint:studentEditAccount
)POST /addtowishlist
: Add a product to the student's wishlist. (Endpoint:addToWishlist
)GET /studentwishlist
: Get the student's wishlist. (Endpoint:studentWishlist
)
GET /getproduct
: Get all products. (Endpoint:getProduct
)GET /getsingleproduct/:productSlug
: Get a single product by its slug. (Endpoint:getSingleProduct
)GET /category/:category
: Get products by category. (Endpoint:byCategory
)GET /location/:hall
: Get products by hall location. (Endpoint:byHall
)POST /createproduct
: Create a new product. (Endpoint:createProduct
)
POST /saveadmin
: Save admin login credentials. (Endpoint:saveAdminLogin
)POST /login
: Admin login. (Endpoint:adminLogin
)GET /loadallstudents
: Get access to all student accounts. (Endpoint:getAccessAllStudents
)GET /allgoods
: Admin access to all goods. (Endpoint:adminAccessAllGoods
)DELETE /deletegoods/:productslug
: Delete a product by its slug. (Endpoint:adminDeleteGood
)
bcrypt
: ^5.1.0cloudinary
: ^1.37.1cors
: ^2.8.5express
: ^4.18.2helmet
: ^7.0.0jsonwebtoken
: ^9.0.0mongoose
: ^7.2.2multer
: ^1.4.5-lts.1sharp
: ^0.32.1