Final Submission
Final Submission
Abstract—This document is a model and instructions for Single There are some prerequisites to understanding this report
Page Web Application. In this report, we discussed all the with better understanding.
necessary steps that are required to build this Web Application.
For development, we used Angular (TypeScript framework). We • HTML (Hyper Text Markup Language) For App Struc-
also discussed all the business logic that is used in this Web ture
Application. Angular is used to develop more modular and more • CSS (Cascading Style Sheet) For Styling
complex Web Applications. This application is for store seller that • TypeScript (Primary Programming Language for Angular
runs offline fashion business and wants to run online business
Web-APP Development) For App Logic
also. This application shall enable all the CRUD operations for
the seller to perform on the business product for makes the
business task easier. II. L EARNING O UTCOMES
Second scenario: with user log in. So, if the user login into
the application, then we can store the add-to-cart product in
the user cart in the back end so that the user can access its cart
from any device by login into the application. For storing the
product in the user cart, we used product service. Following
is the snippet for the UseraddToCart service:
This is a snippet for the User sign-up function and after
successfully storing the data we can navigate to the home page
using a router.
User Login Service: This function has data as input param-
eter and using this data we can request to get this data using In the product service, we have one event emitter to store
HttpClientModule Get method. And if data is present in back the current user’s cart data so that if we want details of the
end, then we get some result from the Get method. And if current user’s cart we don’t have to reach every time to the
result has value of true and has some length then user login server and get the Cart-list of the current user. This event
authentication is success and now, we store this result in local emitter will assign the data whenever the user login into the
storage for the reference of whether user is login or not. application. So, when the user login into the application we
request the cart data of that user using the following snippet,
and then we assign this data to an event emitter that has the
name CartData. Following is the snippet for getting the cart
data of the current user:
E. Seller Page
ACKNOWLEDGMENT
I would like to acknowledge that the entire work that is
required to complete this whole project was done by me and
no one is participating in the work to build this project. I
would thank my mentor Mr. Jigar Bagdai for his time and
efforts provided throughout this Internship. He also gives me
some advice and suggestions that were helpful to me during
the project’s completion.
C ONCLUSION
According to Statista Angular is the top-rated web applica-
tion framework to develop the frontend. Angular is one of the
industry’s leaders in web construction platforms. It is a frame-
work significantly designed for companies and developers to
develop single-page very big complex applications. Angular
CLI makes your life easier. We can create more modular
applications with Angular easily. Our primary goal for this
project is to build a single-page application and Angular has
this ability. These are the reason why we used Angular to
develop this application. Of course, a JSON server is not a
good idea to use but we can push further and make our API
faster and more reliable using Angular’s HTTP Client and In-
Memory-Web-API service.