Modern JavaScript Applications
上QQ阅读APP看书,第一时间看更新

Website walkthrough

We have completed creating our website. Now, let's walkthrough our site to see how it works overall. Before that, make sure that everything is running.

You can visit the home page of the website using the http://localhost:8080/ URL. The following is how the web page will look when you will visit it for the first time:

Now to add a coupon, click on the Submit Coupon button. Now you will see a form. Fill in the form. Here is how it looks:

Now submit the form. After submitting the form, you will be redirected to the home page. The following is how the home page will look after redirect:

Now click on the Admin button to visit the admin panel and accept the coupon. Here is how the admin panel will look:

Click on the Accept button to accept it. Now go back to the home page. This is how the home page will look now:

In the preceding image, you can see that the product is listed.