crete a coherrent plan like 1-a 1-b for this ecommerce app reuiğrements: Postgresql…
- User
crete a coherrent plan like 1-a 1-b for this ecommerce app reuiğrements: Postgresql
n-tier architecture
For all Spring API endpoints Postman and SwaggerUI will be used
React for Front-End
There will be users and admin
There will be screens for log-in and register
To be able to buy a product user needs to have an account
There will be a class for shipping with fake addresses
Users can list their previous shoppings
There will be stocks for products and when a user buys a products the stock will decrease
There will be a language toggle at te top of the page Turkish or English
If a user makes more than one wrong logins the system will be locked
Admin can add product to the system
There are two roles user(n) and admin(n). In the role management system many to many
ıf a user is not registired he will need to register first with thier mail address and password. After registration an activation mail will be sent
User can add a product to the basket
After a product bought, there will be a receipt sent to the users mail adress.
You can see how many products are there in the product page
While a user buy a product ask if I allow the creditcard info to be stored in the database. If a user choose to click the box the credit card data will be stored in the database
User-Credit card = OneToMany
User will be able to toggle the language clicking the buttons on top of the page. For this Resource Bundle (ValidationMessages.properties and ValidationMessages_tr.properties)
Logging for wrong log in attempts in database
- Assistant
1-a. Database design:
- Implement PostgreSQL as the database management system for the application
- Create tables for users, products, orders, shipping addresses, stock, and credit card information
- Define relationships between tables such as OneToMany between users and credit card information table, and ManyToMany between user roles and role management system
1-b. Architecture design:
- Implement a n-tier architecture consisting of presentation, business, and data access layers
- Use React for front-end development and Spring API endpoints for back-end development
- Use Postman and SwaggerUI for API endpoint testing and documentation
- User
okay lets srat implementing this together please elaborate tyhid firtst into more steps: 1-a. Database design:
- Implement PostgreSQL as the database management system for the application
- Create tables for users, products, orders, shipping addresses, stock, and credit card information
- Define relationships between tables such as OneToMany between users and credit card information table, and ManyToMany between user roles and role management system
- Assistant
Sure, here are the detailed steps for implementing the database design:
-
Install PostgreSQL as the database management system on the local machine or on a server.
-
Create a new database for the ecommerce application using the PostgreSQL command line or a GUI tool like pgAdmin.
-
Define the tables required for the application, including:
-
- User
okay start wth this
- Assistant
Great! Here's how we can start implementing the database design for this ecommerce application:
- Install PostgreSQL:
- Download and install PostgreSQL on your local machine or server.