Tuesday, August 13, 2019

Deploying Angular 5+ Applications to Firebase Hosting.

Making angular applications can be a satisfying process. However, what is even more rewarding is deploying your application for everyone to see. In this post, I am going to show you how to launch your Angular 5+ (firebase/firestore) Application to be hosted on firebase. Firebase has some great free plans which will help you receive feedback and test out your application before committing to a paid plan.

If you already have your application initialized and firebase tools installed you can deploy your application with the following commands

Use the Angular Cli to create our dist files with the following
ng build --prod
use the Firebase command line tools to deploy your application with
firebase deploy 

Steps for setting up your first deploy

First you need to install the firebase tools. You can use NPM to install the firebase tools with the following command
npm install -g firebase-tools
Now you need to use the CLI to login into firebase
firebase login
If you have not already, you need to initialize your site. This will create a firebase.json file to use during the deployment of your application. Run
firebase init
follow the instructions provided through the console. This invovles selecting Yes to the question “are you ready to proceed.” Next use the arrow keys to navigate down and use the space bar to select the option “Hosting.” Press enter to continue to the next steps.

Next you will be prompted to select the project you are using in your firebase developer console. After this you will be prompted with the following question “What do you want to use as your public directory?” For older versions of angular the app builds to the dist folder. Therefore you would type “dist” for the public directory. However, in Angular 6 you must also include you applications name “dist/you_applications_name.” Next specify yes to configuring as a single-page application and no to overwriting your existing index.html.




After completing the above steps, your firebase.json file should look like this

Next we need angular to create out dist files. To do this we run the following command with the included flag “ — prod” to use our production set of rules found in environment.ts.prod when building the application.
ng build --prod
Next we will deploy our application using the firebase command
firebase deploy
you application has now been deployed and will be available for access through the link provided in the console.

Saturday, December 1, 2018

Standard Access Control List


ගොඩක්දෙනාගෙ ඉල්ලීම හින්ද අද ACL ගැන ලියන්න හිතුණ.

අපි මෙතනදි කරන්න යන්නෙ Access Control List එකක් හදන විදිහ ගැන කතා කරන්න

Cisco packet Tracer වලින් Dynamic Routing හදමු

අද අපි බලමු  Cisco packet tracer වලින් Dynamic Routing එකක් Configure කරන්නෙ කොහොමද කියල

Saturday, November 24, 2018

TeamViewer එකෙන් යාළුවෙක්ට උදවු කරමු

කොහොමද යාළුවනේ.මගේ කලින් article එකෙන් මං කතා කරේ Programming වලදී අපිට ඕන කරන Linked List  ගැන හැබැයි මං අද කතා කරන්න යන්නේ Programming වලට සම්බන්ද දෙයක් ගැන නම් නෙවෙයි.අද කතා කරන්න හිතුවේ අපිට ගොඩක් ලොකු ප්‍රයෝජනයක් තියෙන Software එකක් ගැන.

TeamViewer ?

TeamViewer කියන්නේ අපිට free download කරගන්න පුළුවන් සහ පහසුවෙන්ම පාවිච්චි කරන්න පුළුවන් Software එකක්.ඒ වගේම TeamViewer කියන්නේ remote control and remote support Software එකක්.

TeamViewer ගැන මං ලොකු හදුන්වාදීමක් කරන්නේ නැහැ මං හිතුවේ TeamViewer install කරගෙන එකෙන් යාලුවෙක්ගෙ computer එකකට Connect වෙලා එයාගේ computer එක Access කරන විදිය ගැන කියල දෙන්න ඕනේ කියල. TeamViewer ගැන හොදටම දැනගන්න ඕනේ යාලුවෝ ඉන්නවනම් එයාලට පුළුවන් මෙතනින් 
TeamViewer ගැන දැනගන්න .

Wednesday, November 14, 2018

JAVA වලින් Linked List එකක් හදාගමු.


ඉතින් යාලුවනේ මම හේෂාන් ලහිරු එක්ක එකතු වෙලා මමත් මේ blog එකට ලියන්න හිතුව. මේක මගේ පලවෙනි article එක හින්ද පොඩි පොඩි අඩුපාඩු කම් තියේවි මුලින්ම එකට සමාව ඉල්ලනවා.

ඉතින් අද මං කතා කරන්න හිතුවේ Linked List ගැන. මොකක්ද මේ Linked List කියන්නේ කියල බලමු. Linked List කියන්නෙත් අපිට programming වලදී ලේසියෙන්ම පාවිච්චි කරන්න පුළුවන් තවත් එක Data Structure එකක් එකත් හරියට අපි හැමොම දන්න Array එකක් වගේ. ඒත් ඇයි Array තියෙද්දී තවත් Linked List කියල Data Structure එකක් ගැන අපි කතා කරන්න යන්නේ කියල මං ඔයාලට පැහැදිලි කරන්නම්.

Monday, November 5, 2018

Cisco Packet Tracer (VLAN)

Why VLAN ? VLAN එකක් භාවිතා කරන්නෙ ඇයි?
VLAN's can be used to create broadcast domains which eliminate the need for expensive routers. 
Periodically, sensitive data may be broadcast on a network. In such cases, placing only those users
who can have access to that data on a VLAN can reduce the chances of an outsider gaining access to
the data.
Routers කියන්නෙ සාමාන්‍යයෙන් ගොඩක expensive devices. ඒ නිසා Network එකක් හදද්දි පුලුවන් තරම් අඩු Router
 ප්‍රමාණෙකින් ඒ වැඩේ කරගන්න පුලුවන්නම් අඩු වියදමක් තමයි වැය වෙන්නෙ.