#Deployments
BACKEND - mssvisionjava
- Pull java code using ssh or http github url
https://support.systechafrica.com:8000/root/mssvisionjava.git - Switch to develop branch
- Run
mvn clean compile - cd src/main/webapp
- Create folder
mssvision
FRONTEND
Requirements
- Install Sencha Cmd v7.3.1.27 or upgrade using sencha upgrade
- Download Sencha Ext packages i.e ext-7.3.1
- Pull Extjs code using ssh or http github url
- Checkout develop
- Run command
sencha app install ~/pathToExtFramework - Run command
sencha app build production - Check creation of folder build ie ls
- Cd
build/production/MssPhoenix/
UNDER ONE ROOF PROCEED FROM ABOVE
- Copy frontend contents to webapp
cp ./* pathToBackendWebAppFolder/mssvision/ -R - cd java backend folder and run
mvn clean compile wildfly:deploy
VOILA!! YOU DONE DEPLOYMENT
##POST-INSTALLATION SQLS INSERT INTO mss.config (id, created_date, currencyName, currencyShortName, emailFrom, emailHost, emailPassword, emailPort, emailUsername, fmBasePath, fmPassword, fmUsername, middlewarePassword, middlewareUsername, mpesaMiddleWarePath, statusConfig, country, countryCode, businessImage, businessName, numTrials, registrationDeclaration, client, reportServerUrl) VALUES (1, '2021-03-01 22:35:56.000000', 'Kenya Shilling', 'Ksh', '[email protected]', 'smtp.gmail.com', 'Admin@123', 587, '[email protected]', 'http://129.159.250.225:8082/Xe/api/', 'Admin@123', 'mssuser', null, null, null, 'ACTIVE', 'Kenya', '254', null, 'Systech MSS', 3, 'I hereby declare that the information provided is true and correct. I also understand that any willful dishonesty may render for refusal of this application.', 'OTHERS', 'http://129.159.250.225:8888/jinfonet/tryView.jsp?jrs.report=/Xe');
INSERT INTO landingpagecontent (id, building, country, email, fixedPhone, lat, lng, postalAddress, road, secondaryPhone, town, created_date, loginImage, logo, memberIcon, memberMessage, pensionerIcon, pensionerImage, pensionerMessage, statusConfig, welcomeMessage, whySaveMessage) VALUES (1, 'Mayfair', 'Kenya', '[email protected]', '0752635153', -1.2622766, 36.806755, 'Nairobi', 'Parklends', '0831538323', 'Nairobi', '2021-04-22 12:47:52.000000', 518, 0, 0, 'Being a member, means you can now access your pension contribution history', 0, 0, 'Being a member, means you can now access your pension contribution history', 'ACTIVE', 'We are the leader with 25 years of experience in the Pension Administration market!', 'Do not become a burden to your young ones. Save Now, Live free after retirement.');
INSERT INTO profile (id, loginIdentifier, name) VALUES (2, 'EMAIL', 'MEMBER'); INSERT INTO profile (id, loginIdentifier, name) VALUES (3, 'EMAIL', 'SPONSOR'); INSERT INTO profile (id, loginIdentifier, name) VALUES (4, 'EMAIL', 'PENSIONER'); INSERT INTO profile (id, loginIdentifier, name) VALUES (5, 'EMAIL', 'CRM'); INSERT INTO profile (id, loginIdentifier, name) VALUES (6, 'EMAIL', 'ADMIN'); INSERT INTO profile (id, loginIdentifier, name) VALUES (7, 'EMAIL', 'CRE');
INSERT INTO securityconfig (id, created_date, issuer, tokenValidityMillis, tokenValidityMillisForRememberMe) VALUES (1, '2021-03-03 08:27:18.000000', 'com.systech', 86400, 1314000);
INSERT INTO mailconfig (id, smtp_base_utl, active, smtp_email_from, smtp_host, smtp_password, smtp_port, supportEmail, smtp_username) VALUES (2, 'http://129.159.250.225:8085/mss', true, '[email protected]', 'smtp.gmail.com', 'Bursting@123', 587, '[email protected]', '[email protected]');
INSERT INTO mobilemoneyconfig (id, accountReference, callbackUrl, minAmount, mobileMoneyProcedure, mpesaAppKey, mpesaAppSecret, mpesaPassKey, mpesaPaybill, status, timeoutUrl) VALUES (1, 'Systech Scheme', 'http://129.159.250.225:8085/mss/resources/api/mpesaCallBack', 1, '1.Go to the M-pesa Menu.
2.Select Pay Bill.
3.Enter Business No. 654321.
4.Enter Account No.XXXXXX (Where XXXXXX is Member number)
5.Enter the Amount.
6.Enter your M-Pesa PIN then send. ', 'UrKWUKv4UXEsGdlM7szaJvcDAZ1OrEVN', 'EmAahKmMXZtkKX20', 'bfb279f9aa9bdbcf158e97dd71a467cd2e0c893059b10f78e6b72ada1ed2c919', '174379', 'ACTIVE', 'http://129.159.250.225:8085/mss/resources/api/mpesaTimeoutCallBack');
##MORE
http://localhost:8080/mss/resources/api/authenticate headers:{ ContetType:'application/json' }
{ "username": "user", "password":"user", "rememberMe":false }
http://localhost:8080/mss/resources/api/users headers:{ ContetType:'application/json', Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJqdGkiOiIzYmU3YWUzZi0wYmM0LTRkNTMtYWM2My1iNjNlYzAzYjVlZjYiLCJzdWIiOiJ1c2VyIiwiaXNzIjoiY29tLnN5c3RlY2gubXNzIiwiaWF0IjoxNjE0NzA4OTkyLCJleHAiOjE2MTQ3OTUzOTJ9.4sFkXjHa5Q-WQc8ZTgaW7NfjCWgpqVdV8yhGjiLZdpA }
{ "password": "", "id": 0, "login": "", "email": "", "activated": false, "langKey": "", "fmIdentifier": "", "profileId": 1 }