Before compiling apps, make sure your compilation environment meets following requirements:
- Installed Node.js platform of 6.9.3 version with npm v3.10.10. More information
- Install Node Version Manager (nvm curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.7/install.sh | bash)
- Install NodeJS using NVM (nvm install 6.9.3)
- For MacOS: install hombrew ( /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install) )
- For MacOS: install cocoapods ( sudo gem install cocoapods >>pod setup)
To compile and install SkaDate web applications (version 2.0.0 (build10)) :
1. Download "Skmobileapp 2.0.0" *** source code of apps.
2. Unpack downloaded skmobileapp.zip file. /skmobileapp/ folder will be created
3. Open /skmobileapp/ folder and complete basic re-branding changes
4. Comlete your own custom changes (if any)
5. Prepare application.config.json
6. Move to /application/ folder using command line:
$cd /application
7. While in /application/ folder run following commands from command line in given order:
$ cp package.tmpl.json package.json
$ npm run setup
$ npm run prepare_ci
$ npm run ionic:build --prod
$ cordova build browser
8. Move one directory up ( from /application/ folder to /skmobileapp/ folder). Command to move one directory up:
$ cd ../
9. Run following command from command line while being in /skmobileapp/ folder:
$ composer install
10. Move one more directory up ( from /skmobileapp/ to the location where skmobileapp.zip was unpacked. Ex: if you have unpacked .zip file on desktop, you will move from /skmobileapp/ folder to /desktop/). Command to move one directory up:
$ cd ../
11. Run following command from command line while being in a directory above /skmobileapp/ to generate skmobileapp_plugin.zip file:
$ zip -r skmobileapp_plugin.zip skmobileapp/ --exclude=skmobileapp/application* --exclude=*.DS_Store* --exclude=skmobileapp/.git/*
12. Check back end settings:
-
- Сheck your software version at the bottom of any Admin Panel page. Your version must be: Skadate (11050). Platform version: 1.8.4 (10840). If your version is different make sure to perform a back end update
- go to Admin panel > Plugins > Installed plugins. Make sure all plugins are up to date. If not, perform available plugin updates.
- configure Paid Membership and User Credits plugins in case if you are using them
- configure Google Locations if you will be using Google Maps for Locations Map plugin
- make sure following plugins are active: SkaDate System Tools, User Search, Matchmaking, Messages.
-
13. Install generated skmobileapp_plugin.zip as a plugin in Admin panel.
15. Test installed web apps by opening your website from Safari (iPhone) or Chrome/Firefox (Android devices).
14. Configure installed SkaDate Mobile Application plugin.