create account

[Tutorial]: Ionic App Development: Building the buisness app part 2 by yalzeee

View this thread on: hive.blogpeakd.comecency.com
· @yalzeee · (edited)
$23.00
[Tutorial]: Ionic App Development: Building the buisness app part 2
![](https://cdn.steemitimages.com/DQmd3bFR2g6FdcbdtoK5Qg3pW4MUQ9vuUzquXB84tB4imty/image.png)
[Image Source](https://www.google.com/url?sa=i&rct=j&q=&esrc=s&source=images&cd=&cad=rja&uact=8&ved=2ahUKEwiOi7iavbbdAhVSPBoKHTMnAaYQjRx6BAgBEAU&url=https%3A%2F%2Fionicframework.com%2F&psig=AOvVaw17DMujbSX3XOKGIMmvNdRb&ust=1536876475975821)

**Repository**: [Ionic Framework Github Repository](https://github.com/ionic-team/ionic)

**Software Requirements**: Visual Studio Code(Or any preferred  editor)
A browser(Preferably Chrome)

**What you will learn:**
- How to develop an tab application with ionic with examples that explain concepts poorly documented or simplified

- How to use bootstrap for ionic development and using your websites design for your app.

- Styling and design methods

**Difficulty**: Intermediate

**Tutorial**:
In this tutorial well be replacing our present app with a ``tab`` template which ionic helps us start easily with basic command requests. The reason for this is that tab templates are way better for user interaction as they are way easier to control and sort of encapsulates all options or menus accesible within a single view.

To start up this template to replace the template used in the last tutorial, we will go and overwrite our prior file from our command prompt module.
Navigate to your user and use the following code
```
//This start up a new project with our tab template and overwrites our existing template
ionic start thebuisnessapp tabs
```
Your command window should give the following output
![Screenshot (32).png](https://cdn.steemitimages.com/DQmSVmyqHyfzNR8NeYwdm4W2nerDwKMEumBPxubMkGh4ewR/Screenshot%20(32).png)
Agree to this and overwrite your former app. 

To explain the concept of using a pre-existing webpage design for your app design, we would be using a design for a website that has been priorly drafted.
This is the websites well be using.
![Screenshot (33).png](https://cdn.steemitimages.com/DQmVZJKjA8jYKPYcDHZdrNBSGaVy6VMLgKpoLof5cxM9aye/Screenshot%20(33).png)

For such purpose well be replacing the ``nav-bar`` for this website with the tabs menu and then putting all the design form the individual pages of this site in different parts of the app.

So the next thing anyone who is familiar with webpage design using bootstrap and not ionic would be whether or how well be using the bootstrap in our ionic development. You should know that it is totally possible and youll soon see how.

**Shortcut tip**: After the dependencies have been installed navigate into your app using ``cd thebuisnessapp`` the type ``code .`` to open your folder in virtual studio code.

![Screenshot (34).png](https://cdn.steemitimages.com/DQmeZXDQWeLAabEvrowo4taL3gZ5C1thaWgdc4KobkD4beR/Screenshot%20(34).png)
**Note**: If youre doing everything right your directory should have all these files.

So the first thing were going to be doing is as stated earlier replacing our ``navbar`` contents with our tab contents for our app. So in ``thebuisnessapp``, lets say we want three tabs
- A home tab where we can see all our transactions
- A settings tab where we can change language settings 
- And Product tab where we can see all the products we have and trade in whatever buisness

We would have to change the name of these tabs which are already created 3 by default by ionic.  
So you navigate to this file 
```
src/pages/tabs/tabs.html
```
In that file you should see this content by default
```
<ion-tabs>
  <ion-tab [root]="tab1Root" tabTitle="Home" tabIcon="home"></ion-tab>
  <ion-tab [root]="tab2Root" tabTitle="Contact" tabIcon="information-circle"></ion-tab>
  <ion-tab [root]="tab3Root" tabTitle="About" tabIcon="contacts"></ion-tab>
</ion-tabs>
```
First things first, replace the names of the tabs with the custom names we want
```
<ion-tabs>
  <ion-tab [root]="tab1Root" tabTitle="Home" tabIcon="home"></ion-tab>
  <ion-tab [root]="tab2Root" tabTitle="Products" tabIcon="information-circle"></ion-tab>
  <ion-tab [root]="tab3Root" tabTitle="Settings" tabIcon="settings"></ion-tab>
</ion-tabs>
```
Then run ``ionic serve`` in your command window to see the changes

![Screenshot (35).png](https://cdn.steemitimages.com/DQmUuDd9brWYME1XAavERCdLbCb74H4zZnWeUvw4jmvpXdx/Screenshot%20(35).png)
 If you were really observant you'd have noticed that ionic already put in place a settings icon for us in our app just adding ``settings`` to our ``tabIcon`` choice.  If you check the [official documentation](https://ionicframework.com/docs/ionicons/) you can find a lot more options of icons that come all together with ionic by default.

To understand this better, change the tab icon in the second tab which is our ``products tab`` to ``clipboard`` which is a better illustration of our tabs content, then save and see how this makes it look better.

The next thing were going to be doing is changing the look of our home page which is the default first page for our ionic app. Later in this tutorial series i will be showing how to change the default page, and even how to make the app show a certain page only the first time it is launched.

So navigate to
```
src/pages/home/home.html


//This should be our default content
<ion-header>
  <ion-navbar>
    <ion-title>Home</ion-title>
  </ion-navbar>
</ion-header>

<ion-content padding>
  <h2>Welcome to Ionic!</h2>
  <p>
    This starter project comes with simple tabs-based layout for apps
    that are going to primarily use a Tabbed UI.
  </p>
  <p>
    Take a look at the <code>src/pages/</code> directory to add or change tabs,
    update any existing page or create new pages.
  </p>
</ion-content>
```

But we do not want that because we want to add our own styles to this app. Before we do anything i would like you to understand the structure of what were seeing here. If we look well, we can see a ``ion-header``. This is the cause of the sort of header we can see at the top of our app but in this case we do not want it because we do not have a menu layout and well prefer to do all page navigation through our tabs option or through buttons bound to pages.

So clear all the content within the ``ion-header``, then save.
If you did this right you app should be without a header. and all we should have would be what is within our ``ion-content``. So also clear out all the default writing, leaving us with empty ``ion-content`` tags.
So we're now ready to add our bootstrap.

 For a normal webpage we would have gone to our module and installed all our bootstrap dependencies to our page but in this case well be doing something quite different.

Go to [Bootstrap](https://getbootstrap.com) and download all the css and js scripts to your download folder.
Open first the css ``bootstrap.min.css`` file and copy everything to ``app.scss``. Were copying it there because whatever css is placed there can be used globally for all pages and that is way more convenient that copying for each pages ``css`` which will make our app have a heavier apk when we compile.

So no we can test to see if everything is working by using a simple hello world jumbotron
```
<ion-content padding>
  <div class="container-fluid">
    <div class="jumbotron">
      <a class="lead">Hello world</a>
    </div>  
  </div>
</ion-content>
```
This is what our app should look like
![Screenshot (36).png](https://cdn.steemitimages.com/DQmWsYEW3eSaRpLRh4pi1zNuaiqmMeUH1ncMg5Pk4jENuaU/Screenshot%20(36).png)
So in the next of this series well go into design and then after that logic. 

You can find my code in [Github](https://github.com/yalzeee/The-Buisness-App)
πŸ‘  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 33 others
properties (23)
authoryalzeee
permlinktutorial-ionic-app-development-building-the-buisness-app-part-2
categoryutopian-io
json_metadata{"tags":["utopian-io","tutorials","programming","stach","wafrica"],"image":["https://cdn.steemitimages.com/DQmd3bFR2g6FdcbdtoK5Qg3pW4MUQ9vuUzquXB84tB4imty/image.png","https://cdn.steemitimages.com/DQmSVmyqHyfzNR8NeYwdm4W2nerDwKMEumBPxubMkGh4ewR/Screenshot%20(32).png","https://cdn.steemitimages.com/DQmVZJKjA8jYKPYcDHZdrNBSGaVy6VMLgKpoLof5cxM9aye/Screenshot%20(33).png","https://cdn.steemitimages.com/DQmeZXDQWeLAabEvrowo4taL3gZ5C1thaWgdc4KobkD4beR/Screenshot%20(34).png","https://cdn.steemitimages.com/DQmUuDd9brWYME1XAavERCdLbCb74H4zZnWeUvw4jmvpXdx/Screenshot%20(35).png","https://cdn.steemitimages.com/DQmWsYEW3eSaRpLRh4pi1zNuaiqmMeUH1ncMg5Pk4jENuaU/Screenshot%20(36).png"],"links":["https://www.google.com/url?sa=i&rct=j&q=&esrc=s&source=images&cd=&cad=rja&uact=8&ved=2ahUKEwiOi7iavbbdAhVSPBoKHTMnAaYQjRx6BAgBEAU&url=https%3A%2F%2Fionicframework.com%2F&psig=AOvVaw17DMujbSX3XOKGIMmvNdRb&ust=1536876475975821","https://github.com/ionic-team/ionic","https://ionicframework.com/docs/ionicons/","https://getbootstrap.com","https://github.com/yalzeee/The-Buisness-App"],"app":"steemit/0.1","format":"markdown"}
created2018-09-12 23:44:45
last_update2018-09-12 23:48:24
depth0
children12
last_payout2018-09-19 23:44:45
cashout_time1969-12-31 23:59:59
total_payout_value17.440 HBD
curator_payout_value5.564 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length7,557
author_reputation12,484,565,044,191
root_title"[Tutorial]: Ionic App Development: Building the buisness app part 2"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id71,125,728
net_rshares21,898,683,414,077
author_curate_reward""
vote details (97)
@ecoinstant · (edited)
$1.66
This is a nice guide, I frequently use guides like this to get new frameworks into place.  I have never heard of ionic, so I would have loved to see an intro paragraph about the project.  Recently I have been using django for my coffeesource site.

Tabbed layout is really powerful, I agree that is gives a very clear interface experience.

I look forward to the next entries on design and layout c;

I would love to see your personal advice on UI/UX in the next parts, because I have done a lot of research and its still the part of design that I struggle with the most.
πŸ‘  , ,
properties (23)
authorecoinstant
permlinkre-yalzeee-tutorial-ionic-app-development-building-the-buisness-app-part-2-20180913t141840599z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"app":"steemit/0.1"}
created2018-09-13 14:18:12
last_update2018-09-13 14:20:18
depth1
children3
last_payout2018-09-20 14:18:12
cashout_time1969-12-31 23:59:59
total_payout_value1.570 HBD
curator_payout_value0.086 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length571
author_reputation846,782,167,126,576
root_title"[Tutorial]: Ionic App Development: Building the buisness app part 2"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id71,182,837
net_rshares1,497,338,819,831
author_curate_reward""
vote details (3)
@utopian-io ·
Hey @ecoinstant
Here's a tip for your valuable feedback! @Utopian-io loves and incentivises informative comments.

**Contributing on Utopian**
Learn how to contribute on <a href="https://join.utopian.io">our website</a>.

**Want to chat? Join us on Discord https://discord.gg/h52nFrV.**

<a href="https://v2.steemconnect.com/sign/account-witness-vote?witness=utopian-io&approve=1">Vote for Utopian Witness!</a>
properties (22)
authorutopian-io
permlink20180913t142436318z
categoryutopian-io
json_metadata{"tags":["utopian.tip"],"app":"utopian-io"}
created2018-09-13 14:24:36
last_update2018-09-13 14:24:36
depth2
children0
last_payout2018-09-20 14:24:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length410
author_reputation152,955,367,999,756
root_title"[Tutorial]: Ionic App Development: Building the buisness app part 2"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id71,183,425
net_rshares0
@yalzeee ·
I'm glad you found it helpful
I would recommend ionic for fast and effective app development for any app that isn't too heavy. I can say that if you follow this series, you would be able to develop an ionic application.
properties (22)
authoryalzeee
permlinkre-ecoinstant-re-yalzeee-tutorial-ionic-app-development-building-the-buisness-app-part-2-20180913t142238553z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"app":"steemit/0.1"}
created2018-09-13 14:22:45
last_update2018-09-13 14:22:45
depth2
children1
last_payout2018-09-20 14:22:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length219
author_reputation12,484,565,044,191
root_title"[Tutorial]: Ionic App Development: Building the buisness app part 2"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id71,183,264
net_rshares0
@ecoinstant · (edited)
Excellent!  I will follow you and maybe build an ionic app in the future!   Am working on my tech skills c;
properties (22)
authorecoinstant
permlinkre-yalzeee-re-ecoinstant-re-yalzeee-tutorial-ionic-app-development-building-the-buisness-app-part-2-20180913t150952613z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"app":"steemit/0.1"}
created2018-09-13 15:09:24
last_update2018-09-13 15:09:39
depth3
children0
last_payout2018-09-20 15:09:24
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length107
author_reputation846,782,167,126,576
root_title"[Tutorial]: Ionic App Development: Building the buisness app part 2"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id71,187,638
net_rshares0
@followforupvotes ·
Congratulations
As a follower of @followforupvotes this post has been randomly selected and upvoted! Enjoy your upvote and have a great day!
properties (22)
authorfollowforupvotes
permlinkre-yalzeee-tutorial-ionic-app-development-building-the-buisness-app-part-2-20180913t001445195z
categoryutopian-io
json_metadata""
created2018-09-13 00:14:48
last_update2018-09-13 00:14:48
depth1
children0
last_payout2018-09-20 00:14:48
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length124
author_reputation24,665,782,446,239
root_title"[Tutorial]: Ionic App Development: Building the buisness app part 2"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id71,127,402
net_rshares0
@grammarnazi ·
Minor Correction
You have a minor misspelling in the following sentence: <blockquote> Visual Studio Code(Or any prefered editor).</blockquote> It should be <i>preferred</i> instead of <i>prefered</i>.
properties (22)
authorgrammarnazi
permlinkre-yalzeee-tutorial-ionic-app-development-building-the-buisness-app-part-2-20180912t234439766z
categoryutopian-io
json_metadata{"app":"steemit"}
created2018-09-12 23:44:48
last_update2018-09-12 23:44:48
depth1
children0
last_payout2018-09-19 23:44:48
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length183
author_reputation-144,064,903,190
root_title"[Tutorial]: Ionic App Development: Building the buisness app part 2"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id71,125,735
net_rshares0
@ilovecoding ·
Hello! Your post has been resteemed and upvoted by @ilovecoding because **we love coding**! Keep up good work! Consider upvoting this comment to support the @ilovecoding and increase your future rewards! ^_^ Steem On! 
 ![](https://codingforspeed.com/images/i-love-coding.jpg) 
*Reply !stop to disable the comment. Thanks!*
πŸ‘  
properties (23)
authorilovecoding
permlink20180912t234457558z
categoryutopian-io
json_metadata{"tags":["ilovecoding"],"app":"ilovecoding"}
created2018-09-12 23:44:57
last_update2018-09-12 23:44:57
depth1
children0
last_payout2018-09-19 23:44:57
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length323
author_reputation40,845,997,808
root_title"[Tutorial]: Ionic App Development: Building the buisness app part 2"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id71,125,741
net_rshares491,118,103
author_curate_reward""
vote details (1)
@portugalcoin ·
$8.93
Thank you for your contribution.
Below are the points we suggest after reviewing your tutorial:

- Include proof of work under the shape of a gist or your own github repository containing your code. Your repository appears empty.

- We suggest you put keywords in the title of what you will explain in your tutorial.

- We suggest that this tutorial be of the basic level of difficulty, inserting the bootstrap is quite simple.

Thank you for your work in developing your tutorial. We are waiting for the next tutorial.

Your contribution has been evaluated according to [Utopian policies and guidelines](https://join.utopian.io/guidelines), as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, [click here](https://review.utopian.io/result/8/21313323).

---- 
Need help? Write a ticket on https://support.utopian.io/. 
Chat with us on [Discord](https://discord.gg/uTyJkNm). 
[[utopian-moderator]](https://join.utopian.io/)
πŸ‘  , , , , , , , ,
properties (23)
authorportugalcoin
permlinkre-yalzeee-tutorial-ionic-app-development-building-the-buisness-app-part-2-20180913t204123775z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"links":["https://join.utopian.io/guidelines","https://review.utopian.io/result/8/21313323","https://support.utopian.io/","https://discord.gg/uTyJkNm","https://join.utopian.io/"],"app":"steemit/0.1"}
created2018-09-13 20:41:24
last_update2018-09-13 20:41:24
depth1
children1
last_payout2018-09-20 20:41:24
cashout_time1969-12-31 23:59:59
total_payout_value7.459 HBD
curator_payout_value1.471 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,011
author_reputation599,460,335,323,040
root_title"[Tutorial]: Ionic App Development: Building the buisness app part 2"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id71,212,677
net_rshares8,088,833,297,091
author_curate_reward""
vote details (9)
@utopian-io ·
Thank you for your review, @portugalcoin!

So far this week you've reviewed 2 contributions. Keep up the good work!
properties (22)
authorutopian-io
permlinkre-re-yalzeee-tutorial-ionic-app-development-building-the-buisness-app-part-2-20180913t204123775z-20180918t025307z
categoryutopian-io
json_metadata"{"app": "beem/0.19.42"}"
created2018-09-18 02:53:09
last_update2018-09-18 02:53:09
depth2
children0
last_payout2018-09-25 02:53:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length115
author_reputation152,955,367,999,756
root_title"[Tutorial]: Ionic App Development: Building the buisness app part 2"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id71,541,895
net_rshares0
@steem-ua ·
#### Hi @yalzeee!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your post is eligible for our upvote, thanks to our collaboration with @utopian-io!
**Feel free to join our [@steem-ua Discord server](https://discord.gg/KpBNYGz)**
properties (22)
authorsteem-ua
permlinkre-tutorial-ionic-app-development-building-the-buisness-app-part-2-20180914t114516z
categoryutopian-io
json_metadata"{"app": "beem/0.19.54"}"
created2018-09-14 11:45:18
last_update2018-09-14 11:45:18
depth1
children0
last_payout2018-09-21 11:45:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length286
author_reputation23,214,230,978,060
root_title"[Tutorial]: Ionic App Development: Building the buisness app part 2"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id71,267,391
net_rshares0
@utopian-io ·
Hey, @yalzeee!

**Thanks for contributing on Utopian**.
We’re already looking forward to your next contribution!

**Get higher incentives and support Utopian.io!**
 Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via [SteemPlus](https://chrome.google.com/webstore/detail/steemplus/mjbkjgcplmaneajhcbegoffkedeankaj?hl=en) or [Steeditor](https://steeditor.app)).

**Want to chat? Join us on Discord https://discord.gg/h52nFrV.**

<a href='https://steemconnect.com/sign/account-witness-vote?witness=utopian-io&approve=1'>Vote for Utopian Witness!</a>
properties (22)
authorutopian-io
permlinkre-tutorial-ionic-app-development-building-the-buisness-app-part-2-20180919t013813z
categoryutopian-io
json_metadata"{"app": "beem/0.19.42"}"
created2018-09-19 01:38:15
last_update2018-09-19 01:38:15
depth1
children0
last_payout2018-09-26 01:38:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length589
author_reputation152,955,367,999,756
root_title"[Tutorial]: Ionic App Development: Building the buisness app part 2"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id71,631,831
net_rshares0
@wafrica ·
Hello! I find your post valuable for the wafrica community! Thanks for the great post! We encourage and support quality contents and projects  from the West African region.<br>Do you have a suggestion, concern or want to appear as a guest author on WAfrica, join our [discord server](https://discord.gg/AfFUhnC) and discuss with a member of our curation team.<br>Don't forget to join us every Sunday by 20:30GMT for our Sunday WAFRO party on our [discord channel](https://discord.gg/AfFUhnC). Thank you.
properties (22)
authorwafrica
permlinkre-tutorial-ionic-app-development-building-the-buisness-app-part-2-20180913t023853
categoryutopian-io
json_metadata""
created2018-09-13 02:38:54
last_update2018-09-13 02:38:54
depth1
children0
last_payout2018-09-20 02:38:54
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length503
author_reputation38,945,611,432,157
root_title"[Tutorial]: Ionic App Development: Building the buisness app part 2"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id71,136,471
net_rshares0