Use case: build a front for an e-commerce
Now that we’ve learned how to use GitHub Copilot for creating HTML markup, let’s use it for a more challenging project: an e-commerce website. The requirements are that it should be a site with the following parts:
- A login page
- A user creation page
- A products page for products to put in a basket
- A basket page to show items you mean to purchase
- A checkout page showing your basket content and form for payment information and address info for shipping
- An admin page that allows you to edit your products
Let’s start with these pages as they are commonly found on e-commerce websites.
Login page
The requirements for a login page are that you as a user can enter a username and password and that there’s a button verifying your credentials. Optionally, you can add links for creating a user and a link if you forgot your password.
Try the following prompt as a comment...