> For the complete documentation index, see [llms.txt](https://inspireui.gitbook.io/beonews/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://inspireui.gitbook.io/beonews/basic-app-setting.md).

# Basic app setting

This section will guide how to make the app work with your existing Wordpress website

## Requisite setup <a href="#requisite-setup" id="requisite-setup"></a>

For easy to config the Wordpress site, you can download the site from [http://github.com/inspireui/mstore](http://github.com/inspireui/mstorethis), this was already config and install all plugin that use for the app, or if you have your existing website, you can following by below setting.

## Wordpres Plugins install  <a href="#wordpres-plugins-install" id="wordpres-plugins-install"></a>

* **JSON API**: A RESTful API for WordPress, this plugin is used for only the registration feature (other request from the API we use default REST API from Wordpress site)
* **JSON API User:** Extends the JSON API for RESTful user registration, authentication, password reset...
* **Better Rest API Featured Image**: for some reason the image is not populate correctly so that need to install this plugin to support to show the image.
* **OneSignal Push Notifications** (optional)**:** push notify to the mobile app, or web using OneSignal dashboard admin. This feature is support on Pro version.

{% hint style="info" %}

#### Download links:

* <https://wordpress.org/plugins/json-api/>
* <https://wordpress.org/plugins/json-api-user/>
* <https://wordpress.org/plugins/better-rest-api-featured-images/>
* [https://wordpress.org/plugins/wp-rest-api-cache/](https://wordpress.org/plugins/onesignal-free-web-push-notifications/)
  {% endhint %}

## Enable Worpdress setting <a href="#enable-worpdress-setting" id="enable-worpdress-setting"></a>

#### **Permalink URL setting**:  <a href="#permalink-url-setting" id="permalink-url-setting"></a>

Go to **Common Setting**, change the URL to **Post name**, this is required for the setting otherwise some images could not loading.

![](https://1983211154-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LHBIhMvzFkd_uhi8KQ3%2F-LHBesYTi0q06PBh64d0%2F-LHBhl07CkM_pecbN_yp%2FScreen%20Shot%202018-07-12%20at%2011.18.33%20AM.png?alt=media\&token=01b8ef56-99a0-43cb-998f-e4fc84df64a9)

#### **Membership registration**:  <a href="#membership-registration" id="membership-registration"></a>

Enable the option **Anyone** can register.

![](https://1983211154-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LHBIhMvzFkd_uhi8KQ3%2F-LHBesYTi0q06PBh64d0%2F-LHBhmieMnMtmOlxksEn%2FScreen%20Shot%202018-07-12%20at%2011.18.39%20AM.png?alt=media\&token=79806975-1364-43d9-8bf5-f35d74bc3cb7)

#### Enable Post a comment

![](https://1983211154-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LHBIhMvzFkd_uhi8KQ3%2F-LHBesYTi0q06PBh64d0%2F-LHBi2XWzRY2u37mL9yH%2FScreen%20Shot%202018-07-12%20at%2011.20.31%20AM.png?alt=media\&token=986c1cab-e9fa-4345-bf24-4269687e8fb4)

And from the functions.php file (this could be added as the child function from your template) add  following code:

```php
function filter_rest_allow_anonymous_comments() {
    return true;
}
add_filter('rest_allow_anonymous_comments','filter_rest_allow_anonymous_comments');
```

## App config <a href="#app-config" id="app-config"></a>

Go the project folder, open the file: **src/common/Config.js** and follow 2 simple steps to setup the app:

* Step 1: Change your Wordpress site URL
* Step 2: Config image and default layout post

![](https://1983211154-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LHBIhMvzFkd_uhi8KQ3%2F-LHBiO6uUTw5xQn6v7Zn%2F-LHBirdy1qiYvo3N7ipO%2FScreen%20Shot%202018-07-12%20at%2011.23.59%20AM.png?alt=media\&token=26b7a6da-25f6-412a-a467-66c27d89a141)

These steps are clarify from the config file, please follow the guide from these style for the customize config.<br>
