issues
search
christopher-frick
/
letslink-0.1
This is an full-stack e-marketplace platform where sellers can manage their profiles and digital products
https://beta.letslink.ch
0
stars
0
forks
source link
Customize the generated entities to fit business needs
#19
Closed
christopher-frick
closed
1 year ago
christopher-frick
commented
2 years ago
Identify the different business needs 1.1 For the Buyer, what should they be able to perform 1.2 For the Sellers, what should they be able to perform
Then customize backend (API, Services)
Finally, customize frontend
customization workflow
Edit config/securityConfiguration.java make endpoint available
Edit roles needed to perform CRUD actions on specific endpoints in web.rest/*Ressource.java
Edit services to make distinction how to handle depending on ROLE_USER or ROLE_ADMIN
Edit front
Disable user self registration, only admin can do it
[x] Block registration API endpoint in security
[x] comment registration button
[x] comment registration option on home page
[x] comment registration test front and back
Seller-profiles
Anyone can look at Seller's profile without login in the application
add Seller's profile in the navigation bar
allow front to display this pages for unauthenticated user
anonymous can only get profiles, unable to create update delete
a Seller can only CRUD a profile for himself
Admin can CRUD for everyone
Products
anonymous can get product from one seller but is unable to create/update/delete them
seller can CRUD a product for himself and can only get others one
admin can CRUD for everyone
customization workflow
Disable user self registration, only admin can do it
Seller-profiles
Products