This is a jdmall frontend demo application based on Vue.js, which contains two pages: product detail page and order list page.
- Product Detail Page: Support selecting products, white-ticket installments, and white-ticket order.
- Order Detail Page: Support viewing order lists, installment repayment plans, etc.
- Vue.js: A progressive JavaScript framework for building user interfaces.
- Vite: A next generation frontend build tool.
- Vue-router: Page routing solution for Vue.js.
- Axios: A promise-based HTTP client for the browser and node.js. I used it to handle HTTP requests.
- Tailwind CSS: A utility-first CSS framework for rapidly building custom designs. All page styles are written in Tailwind CSS.
- Element-Plus: For quickly building web applications. I used it to achieve the notification pop-up effect, the product image carousel effect, page loadding effect, etc. It is a good choice for building a complex web application.
- Font-Awesome: For providing the icon font.
- Install Node.js
brew install node
- Clone the repository
git clone git@github.com:tonngw/jdmall-demo.git
- Install dependencies
cd jdmall-demo
npm install
- Run the application
npm run dev
- Open the application in the browser
Visit address: http://localhost:5173/, and you can see the application running.
If the address is not available, you can see the port number in the terminal output, even change the port number in the package.json
file.
You will learn a basic understanding of how to build a frontend application with Vue.js and Vite.js. You will also learn how to use Vue-router, Axios, Tailwind CSS, Element-Plus, and Font-Awesome.
This is a simple demo application, but it can be extended to a more complex one with more features and functions.
The demo is my learning experince, so I hope this demo can help you get started with Vue.js, Vite.js and etc.