Skip to content
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

T17: Create Order Page 1/2 #31

Open
19 tasks done
aleyna-yildizli opened this issue Apr 19, 2024 · 1 comment
Open
19 tasks done

T17: Create Order Page 1/2 #31

aleyna-yildizli opened this issue Apr 19, 2024 · 1 comment
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@aleyna-yildizli
Copy link
Owner

aleyna-yildizli commented Apr 19, 2024

Description

  • There will be two steps on Create Order Page

  • If user is not logged in, client should be redirected to Login Page. Please check Protected Routing subject on React Router 5 tutorials and docs.

  • In this task you will handle only Step 1

    Untitled

Step 1 - Address information

  • On that page client can add shipping and receipt addresses separately
  • Client can select address previously saved
  • Make a GET request to “/user/address” to get saved address list of the user
  • NOTE! if user authenticated and token is in request headers, address of the user will be responded. However, if user is not logged in, than it will response with an Error

Add new address

  • If client click “Add Address” button a form should be shown on the page
  • Form Fields:
    • Address Title: String
    • Name & Surname: String
    • Phone: String
    • City (İl): City should be selected on the dropdown list
    • District (İlçe): String
    • Neighborhood (Mahalle): String
    • Address: String multiline ****for the rest details: Street, building and door numbers
  • On Submit you need to make a POST request to same endpoint: “/user/address
  • NOTE! if user authenticated and token is in request headers, address of the user will be saved to DB. However, if user is not logged in, than address will not be saved and it will response with an Error.
  • To update address information you need to create PUT request to “/user/address” endpoint including id of the address information.
@aleyna-yildizli aleyna-yildizli self-assigned this Apr 19, 2024
@aleyna-yildizli aleyna-yildizli converted this from a draft issue Apr 19, 2024
@aleyna-yildizli aleyna-yildizli added the documentation Improvements or additions to documentation label Apr 19, 2024
@aleyna-yildizli aleyna-yildizli moved this from Sprint Backlog to In progress in @aleyna-yildizli's e-commerce project Apr 19, 2024
@erhanfirat
Copy link
Collaborator

Update ve Delete işlemleri de eklenecek
İyi çalışmalar

@aleyna-yildizli aleyna-yildizli moved this from In progress to In review in @aleyna-yildizli's e-commerce project May 19, 2024
@erhanfirat erhanfirat moved this from In review to Done in @aleyna-yildizli's e-commerce project May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
Development

No branches or pull requests

2 participants