Basic app setting

Last updated 3 months ago

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

Requisite setup

For easy to config the Wordpress site, you can download the site from http://github.com/inspireui/mstore, 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

  • 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.

Enable Worpdress setting

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

Membership registration:

Enable the option Anyone can register.

Enable Post a comment

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

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

App config

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

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