Category Archives: Web Development

15 Aug

How to start Angularjs 4 with Angular CLI

rsz_screenshot_2017-08-15_165615

Angular CLI is a command line interface to use Angularjs. We can create any type of Angular apps easily with the help of Angular CLI.

How to start Installation?
Here we are going to use Node.js command prompt.

Start Node.js command prompt & Follow these commands in Node.js command prompt.

install angular cli

> npm install -g @angular/cli

for latest version :

> npm install -g @angular/cli@latest

 

Angular CLI makes it easy to create a new application.

Angular CLI - create a new app

> ng new hello-world
> cd hello-world

Angular CLI - new app created

 

Check the version you have installed :

> ng --version

or

> ng -v

“ng –version” or “ng –v” command will show installed version details like this :

Angular CLI - version

@angular-cli: 1.3.0
node: 8.2.1
@angular/common: 4.3.4

 

How to run our new app in a web browser
Easily start running our new app in ‘webpack-dev-server server’. It is only for development with live reload.

Angular CLI ng serve

> ng serve

Angular CLI ng serve-compiled

angular cli app in a web browser:

run angular cli app in a web browser

The app will automatically reload if you are changing something in any file. “http://localhost:4200” this is a default angular cli app URL. Open this URL in any browser. The app will start working.

How to change angular cli server port number or host instead of “localhost:4200”
We can configure it manually in our “angular-cli.json” file, which is locating in our project directory.

"serve": {
            "port": 5500,
            "host" : "112.168.0.100"       
}

Restart the server. It will serve in the new port or host as per update.
Example, http://112.168.0.100:5500


” Angular is running in the development mode. Call enableProdMode() to enable the production mode. ” It is a default console message.
We can update environment to production mode.
change production: false to true in environments/environment.ts

export const environment = {
	production: true
};

 

Project’s unit testing.
‘hello-world\src\app’ folder have app.component.spec.ts file. That file has unit test configurations.

Angular CLI - test

Test Debug page :

Angular CLI - test debug

> ng test

 

Create compiled and minified application :
Compiled and minified application will get generated in a new ‘dist’ directory by default. “ng serve” is not required to run “ng > build”.

> ng build

Build compiled and minified version for production :

 compiled and minified application in dist folder

> ng build --target=production

or

> ng build --prod


How to generate Angular components in CLI

Angular CLI create component

> ng g component sample-component-name

It will generate new component folder “sample-component-name” with all related files in the src\app directory.

How to stop running node server
Node.js command prompt – Press -C twice or type ‘exit’ to stop node server.
Node.js – Press -D

"[WDS] Disconnected!"

This message will come to browser console if ‘webpack-dev-server’ is not working or stopped running server manually.

02 Dec

5 Must Have Free WordPress Plugins for Every Blogger

Must Have Free WordPress Plugins

WordPress is the most popular open source platform of running blog & website. Here, it’s a list of 5 Must Have Free WordPress Plugins for Every Blogger that based on my personal experiences. Each one of these essential WordPress plugins that should be installed on every new WordPress site before you do anything else.

 

WordPress SEO By Yoast

WordPress SEO By Yoast
WordPress out of the box is already technically quite a good platform for SEO. But that doesn’t mean you can’t improve it further! You can improve your WordPress SEO: Write better content and have a fully optimized WordPress site using Yoast SEO plugin.

https://wordpress.org/plugins/wordpress-seo/

 

W3 Total Cache

W3 Total Cache
W3 Total Cache improves the user experience of your site by increasing server performance, reducing the download times and providing transparent content delivery network (CDN) integration. The only WordPress Performance Optimization (WPO) framework; designed to improve user experience and page speed.

https://wordpress.org/plugins/w3-total-cache/

 

Disqus Comment System

Disqus Comment System
The Disqus comment system replaces your WordPress comment system with your comments hosted and powered by Disqus.

https://wordpress.org/plugins/disqus-comment-system/

 

BackUpWordPress

BackUpWordPress
Simple to use automated backups of your WordPress-powered website. BackUpWordPress will back up your entire site including your database and all your files on a schedule that suits you.

https://wordpress.org/plugins/backupwordpress/

 

Contact Form 7

Contact Form 7
Contact Form 7 can manage multiple contact forms, plus you can customize the form and the mail contents flexibly with simple markup. The form supports Ajax-powered submitting, CAPTCHA, Akismet spam filtering and so on.

https://wordpress.org/plugins/contact-form-7/

 

27 Jun

Top 5 responsive front-end frameworks – 2014

responsive front-end framework

Bootstrap

The most popular front-end framework for developing responsive, mobile first projects on the web.

Bootstrap is absolutely the best accepted and broadly acclimated framework, nowadays. It’s a beautiful, automatic and able web architecture kit for creating cantankerous browser, constant and acceptable attractive interfaces. It offers abounding of the accepted UI apparatus with a plain-yet-elegant style, a filigree arrangement and JavaScript plugins for accepted scenarios.

twitter bootstrap 3

Bootstrap is a free collection of resources for generating websites and internet applications. It contains HTML and CSS-based design themes for typography, kinds, buttons, navigation along with other interface parts, because well as optional JavaScript extensions. In Summer 2014 it was the No.1 project on GitHub with 69,000+ performers and 25,000+ forks, with a user base including MSNBC and NASA.

Website : http://getbootstrap.com/

Foundation

ZURB Foundation 5

The most advanced responsive front-end framework in the world.

ZURB Foundation is a no-cost collection of resources for creating web sites and web programs. It contains HTML and CSS-based design themes for typography, forms, buttons, navigation and other user interface components, since well as recommended JavaScript extensions.

Website : http://foundation.zurb.com/

Semantic UI

Semantic UI

Semantic empowers designers and developers by creating a language for sharing UI.

Semantic is a UI Component library implemented using a set of specifications designed around natural language. It provides many commonly needed elements, collections, and modules. It also provides a structure for third party components to use.

Website : http://semantic-ui.com/

Gumby

Gumby

Gumby 2.6 is built with the power of Sass. Sass is a powerful CSS preprocessor which allows us to develop Gumby itself with much more speed — and gives you new tools to quickly customize and build on top of the Gumby Framework.

Website : http://gumbyframework.com/

Pure CSS

Pure CSS

A set of small, responsive CSS modules that you can use in every web project.

Pure is a little set of CSS segments which you can use in any web project. This has small impact. It is developed with cellular in your mind and has now minimal design which enables you to write your very own style on top of it. With number of CSS components Pure is just one of the strong competitor for Responsive CSS Frameworks choices.

Website : http://purecss.io/