Angular POC Project
Angular POC Project
Angular POC Project
ProjectTreportTsubmittedTinTpartialTfulfillmentTofTtheTrequireme
ntTforTtheTdegreeTofTBachelorTofTTechnology
Tin
ComputerTScienceTandTEngineering/InformationTTechnology
By
AviralTSainiT(151452)
Kamal Jeet Singh(151262)
UnderTtheTsupervisionTof
Jatin Kapil
(Technical Lead, Project Development Department, Click Labs)
To
DepartmentTofTComputerTScienceT&TEngineeringTandTInformati
onTTechnology
1
CERTIFICATE
Candidate’s Declaration
I hereby declare that the work presented in this report entitled “Angular POC
Project” submitted in the department of Computer Science & Engineering and
Information Technology, Jaypee University of Information Technology,
Waknaghat is an authentic record of my own work carried out under the
supervision of Mr. Jatin Kapil (Technical Lead, Project Development
Department, Click Labs). The matter embodied in the report has not been
submitted for the award of any other degree or diploma.
This is to certify that the above statement made by the candidate is true to the best
of my knowledge.
2
ACKNOWLEDGEMENT
I would like to extend my deep gratitude to my project mentor Mr. Jatin Kapil
Tech.Lead at Click Labs, Chandigarh who gave me a golden opportunity to get a
hands on experience in Frontend Development as as Software Engineer, which
helped me to develop many new skills in technologies as well as enhanced our
self-development skills that will help build my career ahead. We get to know
about working in team and had a great IT industry exposure.
I would also like to extend my sincere thanks to all the faculty and staff of the
Department of Computer Science and Information Technology of Jaypee
University of information and Technology for all the support and motivation
provided by them.
3
LIST OF FIGURES
4
TABLETOFTCONTENTS
Certificate ……………………………………………… 2
Acknowledgment ………………………………………. 3
List of Figures …………………………………………... 4
Abstract …………………………………………………. 7
5 Conclusion ………………………………………… 32
References
6
ABSTRACT
As for now NativeScript is getting the market to its corner but still ANGULAR
plays a Vibrant Role.
7
CHAPTER-1
1.1 Jugnoo
8
primary auto rickshaw aggregator with the impartial of constructing each day
drive simple and solid. In the wake of convey the on-interest insurgency to
day by day drive, we extended our vision and dream of contacting regular day
to day existences in a lot greater way. With 10lac exchanges every month
crosswise over 45+ urban areas, however started as a little organization in
2014 is presently pear forwarding the development of nearby Indian
commercial centre into advanced. Jugnoo now stretches a extensive
possibility of neighbourhood profits on interest auto rides, basic supplies,
wherewithal transport, dinners, coordination and even a range based adjoining
informal community. It gives on-request transportation and coordination
benefits crosswise over 38 urban areas in India through their portable tender
that can be moved in Android, iOS and Windows based telephones.
9
Figure 1.2 Jungleworks Products
A front-end web designer is likely what a great many folks consider as a "web
engineer". A front-end web designer is in charge of actualizing pictorial
elements that clients can view & communicate with in a web application.
They are normally bolstered by back-end web engineers, who are in charge of
server-side application rationale and joining of the work front-end designers
do.The Logics for UI are executed by Front End Developer with the assistance
of various systems present in the market. Concerning now NativeScript is
getting the market to its corner yet at the same time ANGULAR assumes a
Vibrant Role
1.4 Responsibilities
10
I chipped away at Angular-7 CLI and aided in Companies Projects, the name
for such Projects can't be uncovered according to organizations Norms. Front
End Development is as much significant as Backend Developer as UI
Implementation is the primary thing a User gain admittance to.
11
CHAPTER: 2
ANGULAR POC
1. INTRODUCTION
AngularJS ended up famous in all respects rapidly and got a great deal of
footing. All things considered, its maintainers chose to make another stride
further and continued to build up another rendition which was at first named
Angular 2 (later, basically Angular without the "JS" part). It's no fortuitous
event the structure got another name: really, it was completely re-composed
and overhauled, while numerous ideas were re-examined.
It's JavaScript, yet better. Precise is worked with TypeScript, which thusly
depends on JS ES6. You don't have to become familiar with an absolutely
new dialect, yet despite everything you get highlights like static composing,
interfaces, classes, namespaces, decorators and so on.
12
Script variables to bind the input supplied by the user and formulate the
output.
2.2 OJECTIVE
● User Authentication
● Auth Guards
● Client Services
● Controllers.
● Database
● Functionality Module
2.3.1 HTML:
13
Internet browsers get HTML archives from a web server or from
neighbourhood stockpiling and render the records into sight and sound website
pages. HTML depicts the structure of a website page semantically and initially
included signs for the presence of the record.
2.3.2 CSS:
The AngularJS system, was based over JavaScript with the mean to decouple
the business rationale of an application from the low dimension DOM control
and make dynamic sites.
14
2.4 APPLICATION DESIGN
The Registration Page incorporated into project so that the new client can
provide the data and store it in the Database with the help of a Post Service.
The Post API assembles entire of the data and store it in the database which
was made by the use of JSON-SERVER. This Page is a Part of Public
Module.
15
If anyone is registered, they can choose to be re-directed to the login page.
This Page incorporates label elements and distinctive input fields. The input
of Password and Password recheck are associated with Custom Validator.
The register button will appear only once all the field are valid, i.e. for each
input field obeys the set validation.
The Login Page incorporated into application uses HTML’s GET Method to
fetch the details from the API and then validates them in backend to verify if
credentials are correct. In the credentials are correct the system will fetch all
data associated with the concerned credentials. This page is included under
public module since it is accessible publicly.
16
The Login Button Will be incapacitated till it get the required certifications.
In the event that and New User get straightforwardly to Login Page the
connection to enlist, is likewise given in the format. In the event that any
client isn't enrolled and attempts to login The Alert concocts message "You
are not enlisted".
Once the user has successfully logged in he will be redirected to his profile
view that displays all his personal information. This information is editable as
per user’s requirement. When the user makes an update to his profile the patch
is escalated to carry out the change in the database.
17
The profile also includes a display for the name of the currently logged in
user. This is made functional by the use of two-way binding.
This page allows the user to access all the booking with his credentials these
include both past as well as up-coming bookings. To fetch these details the
modules involves the use of Get Service to fetch the Json Object which
contains all the Booking information.
1. Past
2. Upcoming
Since Past and Upcoming bookings are distinct of each other thus both them
are associated with different views.
18
Fig 2.4 Booking Page
19
Fig 2.5 FAQ’s
Rakish course protects are interfaces which can tell the switch whether it
ought to enable route to a mentioned course. They settle on this choice by
searching for a genuine or false return an incentive from a class which
executes the given gatekeeper interface.
20
• CanActivate
• CanActivateChild
• CanDeactivate
• CanLoad
• Resolve
2.4.7 SERVICES :
21
Precise doesn't uphold these standards. Precise helps you pursue these
standards by making it simple to consider your application rationale services
and make those services accessible to segments through reliance infusion.
2.5 COMMANDS :
There are so different commands in Microsoft Visual Studio Code for Angular
CLI in order to generating different modules of project like feature-module ,
components , services , authguards , and even to run an application we have
to run a particular command so that it can run on web-browser. These
commands also inject the dependency itself in application module whenever
we run “generate” command.
The list command used in this Application with their purpose are given below:
22
CHAPTER : 3
NATIVE SCRIPT
1. INTRODUCTION
NativeScript is an open-source structure used to create applications that runs
successfuly on both the Android and iOS. It is also use for developing web
application simultaneously with mobile application. It was initially visualised
and formulated step by step. This Script’s applications are written in
JavaScript, or languages equivalent to JavaScript, for example TypeScript.
This Script is compatible with both Angular as well as Vue JavaScript
systems. The Portable mobile applications delevoped using NativeScript
result in entirely local applications, similar to the APIs developed using Xcode
or Android Studio. It allows programer to use additional programming
libraries from portalssuch as npm.js, Android Arsenal, CocoaPods or others
elimanating the wrappers. The NativeScript includes modules like - CLI,
Runtimes, Plugins Core Modules.
23
3.2 CORE MODULES
http: Gives you a chance to send web demands and get the reactions.
trace: Gives you a chance to follow and print explicit data dependent on
classes.
connectivity: Gives you a chance to check the sort of Internet association and
screen its state changes
24
3.3 LAYOUTS
25
3.4 OBJECTIVE
The basic objective of this project is similar to one highlighted before in the
report earlier, i.e. to build an application on angular framework version 7. In
this project the application was build to track the sales of each and every team
in the sales department. After successful login the portal, this application
presents a list of the teams along with their total sale of the individual team as
well the company consideration. It is to be noticed that the admin has the
additional rights to manage the teams. The features included are add , update
and delete team details.
The login page includes two text fields one for username and one for
password that are used to validate user’s credentials to re-direct him to
designated dashboard. Given below is a screenshot that establishes the view
presented to user for login
26
Fig 3.2 Login Profile
3.5.2 DASHBOARD:
The dashboard exclusively designed for the admin presents a list of all the
enrolled teams along with the sales figure that correspond with them. All
these details are fetched using get method to hit the database. In order to
establish a sense of independence the database is accessed through API’s and
not directly, thereby using the API as the service layer. In order to provide
extended management of the enrolled teams, the application includes a delete
view that allows the admin to analyse and remove a team as per his own
discretion.
27
3.5.3 ADD TEAM:
Another API is involved to insert validated inputs into the database i.e. name
of the team along with the projected revenue.
28
Fig 3.4 Add Team
Once the record has been inserted, there are chances that admin might feel
the necessities to update the credentials based on the login module supplied
within the application. In order to facilitate this functionality, an update view
has been included to update the details as per requirements.
29
Fig 3.5 Update Team
3.6 COMMANDS:
In this project we have to run different commands in order to achieve
successfully what we really want in our SHARED APPLICATION . Since we
have to also run the web app too so we have to run some commands which
we used in above project.
• In order to create a new shared project through command we can use the
command under @nativescript/schematics as follows
ng new --collection=@nativescript/schematics project-name --shared
30
• Web Build builds a web app from the code-sharing project and opens it in
default browser
ng serve -o
• Mobile Build
tns run ios --bundle
tns run android --bundle
These are the files which are created for mobile app.
31
CHAPTER : 4
WORK PERFORMANCE
32
However, the project motivated me to push myself against my limit and
improve my output inch-by-inch.
The key learning not only included the knowledge of the technology involved
but also the integration of cross desktop development through GIT that
facilitated developers to merge their contribution into a single unified project.
33
CHAPTER : 5
CONCLUSION
34
REFRENCES
The material that we have referred that helped us with the development of our
Angular POC project are as follows:
1. https://angular.io/guide/quickstart
2. https://docs.angularjs.org/tutorial
3. https://material.angular.io/
4. https://github.com/johnpapa/angular-styleguide
5. https://docs.nativescript.org/
6. https://docs.nativescript.org/angular/start/introduction
35