Setup Deco Ionic News

How to setup Deco News app


1. First download node.js this video

  • Windows users, you may look to this video on how to install Node.js 
  • For Ubuntu users, you may look to this video on how to install Node.js
  • For Mac OS X users, you may look to this video on how to install Node.js

2. Open the terminal and run next command “npm install -g ionic cordova”


How to run our project


Start for Windows

1. Extract your downloaded file
2. Open extracted folder
3. Open terminal with current location
4. In the terminal write “npm install”
5. In the terminal write “ionic serve”

Start for iOS

1. Extract your downloaded file
2. Open extracted folder
3. Open terminal with current location
4. In the terminal write “sudo npm install”
5. In the terminal write “sudo ionic serve”

How to add our website in app

Add in our website link to services.ts patch (NameOurApp/src/services/service.ts) 

Ionic 4 devspush


How to add your website:

  getRootUrl() {
    return 'https://deconews.decouikit.com/wp-json/wp/v2/';
  }
       


How to set default theme light or dark:

 'isLightColorSelected': true,


Enable or disable RTL:

 'defualtValueForRTL': false,


Settings social network:

  'socialLink': {
       'facebook': 'https://www.facebook.com',
        'twitter': 'https://twitter.com',
        'youtube': 'https://www.youtube.com/',
        'instagram': 'https://www.instagram.com'
  },


Show all category

 'isExcludeCategoryEnabled': true,


How to enable the intro page:

  'introData': true,


Enable or disable push notification:

 'defaultValueForPushNotification': true,


Settings social network:

  'oneSignal': {
      "appID": "94ca9005-8bfe-1234-5678-d9b74be573f4",
       "googleProjectId": "123456789012"
  },


Number od item per page:

  'numberOfItemPerPage': 30,