DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

The Latest JavaScript Topics

article thumbnail
Angular Application : Spring Data-ldap part-3
Having created the Spring rest service in the previous two blogs, it is time to look at the angular based application that will be interacting with those end points. I prefer using angular-cli to create and add features to my application, it is an easy and reliable way of adding stub code which is easier to manage and traverse. ng : Angular CLI A simple definition from the angular.io website The Angular CLI is a command-line interface tool that you use to initialize, develop, scaffold, and maintain Angular applications. You can use the tool directly in a command shell, or indirectly through an interactive UI such as Angular Console. In this blog I will try to provide quick insights into how one can use Angular CLI and some basic introduction of its commonly used commands, as we work towards creating our example application to consume the Sprint Data-LDAP rest endpoints. The first step in the journey is to install angular cli. Please note, I am not going to cover angular basics, or node and npm and will assume you have some prior exposure to these technologies. How to install @angular/cli You can open a terminal and issue a simple command to install the angular cli as in shown in the image below. npm install -g @angular/cli To validate you can issue a command as under on the terminal ng -v ng --version On the day I am writing this blog the version that I am using is 7.3.8. Options The --help option can help you explore the options for any of the commands. In the image below you can see all the options available that we can use along with new. The information is available with a brief ddescription to what purpose it serves. If you issue just ng on the terminal you can see the commands that you can use and can explore further by using the --help option. Node & NPM The Node and NPM version information for my sytem is samarthyas$ node -v && npm -v v10.4.1 6.4.1 Creating a New app Time to get started for creating a new application that I will use for my Spring data-ldap integration. ng create --help Provides with all the information required to launch a new application. Let's create the boiler plate code using the new option ng new samarthya -d Option: --dry-run (-d) I have used an option -d for dry run which lists the file that it will create without actually creating them on the disk. I often use this option to see the number of files that it will create and the folder structure, if applicable. You can also see the NOTE at the end pointing to the information - no changes were made. Option: --skip-install Skip install allows you skip npm install that is executed after the files are created, I seldom use it, but is a good option to reduce the development time. After I verified, the list of files that it will create, time for executing the command without the flag. The last step of the command is executing the npm install that pulls in all the dependencies required to launch test and debug the application. You can open the folder in any preferred code editor, I use VS code and is my go to option for any Angular related development and validate the folder structure. From the angular documentation Folder and files PURPOSE app/ Contains the component files in which your app logic and data are defined. See details in App source folder below. assets/ Contains image files and other asset files to be copied as-is when you build your application. environments/ Contains build configuration options for particular target environments. By default there is an unnamed standard development environment and a production ("prod") environment. You can define additional target environment configurations. browserslist Configures sharing of target browsers and Node.js versions among various front-end tools. See Browserslist on GitHub for more information. favicon.ico An icon to use for this app in the bookmark bar. index.html The main HTML page that is served when someone visits your site. The CLI automatically adds all JavaScript and CSS files when building your app, so you typically don't need to add any
May 7, 2019
by Saurabh Sharma
· 3,557 Views · 3 Likes
article thumbnail
Build and Deploy a Node.js Application into Azure Web Apps Using Azure DevOps (CI/CD)
In this tutorial, we look at how to get a Node.js app up and running and then deploy it to an instance of Azure DevOps.
Updated May 6, 2019
by Sudheer Mareddy
· 26,486 Views · 6 Likes
article thumbnail
How to Make a Vue.js Website SEO Friendly
While SEO is typically relegated to a marketing role, your code can have an effect too. Learn how to use Vue.js to improve your site's/app's rankings.
Updated May 6, 2019
by Ted Mikulski
· 66,087 Views · 1 Like
article thumbnail
How to Build a Light REST Client With JavaScript
We take a look at how to build a REST client using the free backend as a service platform, Backendless, and a good amount of JavaScript code.
May 6, 2019
by Vladimir Upirov
· 9,526 Views · 4 Likes
article thumbnail
Crafting a Command Line Experience that Developers Love
Create a CLI that developers can not only use, but can enjoy using.
May 3, 2019
by Nick Parsons
· 13,565 Views · 2 Likes
article thumbnail
Build a Secure App With Spring Boot and Vue.js
Learn more about app security with Spring Boot, Vue, and Okta.
May 2, 2019
by Andrew Hughes
· 50,058 Views · 7 Likes
article thumbnail
Distance Calculations Between Points With the HERE JavaScript SDK
When I'm interacting with developers using HERE APIs and services, one common question I get is around distance calculations. The HERE SDK and APIs make it e...
April 30, 2019
by Nic Raboy
· 10,455 Views · 2 Likes
article thumbnail
Use ASP.NET Web API and Angular to Build a Simple App
We learn how to use these popular technologies to create a metrics tracking application, and then secure that application.
Updated April 24, 2019
by Lee Brandt
· 85,216 Views · 2 Likes
article thumbnail
Example of ETL Application Using Apache Spark and Hive
In this article, we'll read a sample data set with Spark on HDFS (Hadoop File System), do a simple analytical operation, then write to a table that we'll make in Hive.
April 24, 2019
by Emrah Mete
· 37,948 Views · 4 Likes
article thumbnail
20 Examples of Using Java’s CompletableFuture
Java 8's CompletableFuture is a versatile tool to have. Here are 20 examples of how you can use it in your code for the best effect.
Updated April 24, 2019
by Mahmoud Anouti
· 447,344 Views · 62 Likes
article thumbnail
Generating and Consuming REST APIs With Spring Boot 2, Angular 7, and Swagger 2
In this article, we are going to generate API documentation from a Spring Boot REST API and generate an Angular API client from the documentation using Swagger.
April 24, 2019
by Swathi Prasad
· 50,483 Views · 14 Likes
article thumbnail
Building a Web Application Using Spring Boot, Angular, and Maven
In this article, we will explore the steps used to build a web application using Spring Boot with Angular and Maven and then launch it on a Tomcat Server.
April 19, 2019
by Santhosh Krishnamurthy
· 60,830 Views · 11 Likes
article thumbnail
Deploy an Angular App From Visual Studio Code to Azure
This article has a star studded lineup: Node.js, Angular, VS Code, and Azure. Read on to learn how to easily build a web app utilizing these technologies!
Updated April 18, 2019
by Brian De Sousa
· 121,015 Views · 6 Likes
article thumbnail
How to Develop a Location-Based Application Using React Native
In this post, we take a look at how to use React Native to build an application that can determine a user's location via an API.
April 18, 2019
by Julia Korsun
· 16,469 Views · 1 Like
article thumbnail
10 Best JavaScript Charting Libraries for Any Data Visualization Need
If you're interested in learning how to visualize your findings, read on for a list of great data viz libraries to help get you started.
April 18, 2019
by Ruslan Borovikov
· 40,712 Views · 15 Likes
article thumbnail
Creating Annotations in Java
This comprehensive look at annotations in Java not only goes into how to create them but also advise on how to use them and how they're processed by the JVM.
Updated April 16, 2019
by Justin Albano DZone Core CORE
· 398,149 Views · 125 Likes
article thumbnail
Node.js and Yarn for Happy Local Package Development
We take a look at how to Node.js and Yarn to create and use npm packages on your local machine.
April 16, 2019
by Liran Tal
· 13,533 Views · 3 Likes
article thumbnail
Real-Time Interaction Between Maps With Socket.io and JavaScript
In this post, you'll learn how send the same data to multiple clients from your server-side in real-time using JavaScript.
April 12, 2019
by Nic Raboy
· 22,135 Views · 1 Like
article thumbnail
Formatting Strings With Python
Python offers a variety of options that you can use to format strings. See which one you should use.
April 11, 2019
by Ahmed EL Bir
· 11,831 Views · 5 Likes
article thumbnail
Java Stream: Is a Count Always a Count?
Learn more about counts in Java streams.
April 10, 2019
by Per-Åke Minborg
· 19,183 Views · 9 Likes
  • Previous
  • ...
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • ...
  • Next
  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook
×