Mark’s POS
"Sell All"
Speaker: Dmytro Golysh
Software engineer
Questions are welcome
Our Team:
Our Product:
Our stack of technologies:
Build system
Our stack of technologies:
Testing
Our stack of technologies:
Our processes
Pair programming
Pomodoro technique
TODO lists
Rules
Git flow
Code review
Pull requests
Other interesting rules
Fail build
Late on stand up
Code
Style Guide
Code
(function() {
'use strict';
angular
.module('app')
.run(setupPos);
/*@ngInject*/
function setupPos(PosSetupService) {
PosSetupService.setup();
}
})();
Code
(function() {
'use strict';
angular
.module('app')
.config(storeAdministrationRouter);
/*@ngInject*/
function storeAdministrationRouter($stateProvider) {
$stateProvider
.state('store.administration.reports', {
url: '/reports',
onEnter: onEnterAdministrationReports,
onExit: onExitAdministrationReports,
views: {
'menu@store': {
templateUrl: 'store/administration/reports/reports-menu.html',
controller: 'ReportsController',
controllerAs: 'reportsCtrl'
}
}
})
Code
(function() {
'use strict';
angular
.module('app')
.factory('GlobalConfigStore', GlobalConfigStore);
/* @ngInject */
function GlobalConfigStore(BindingStoreFactory,
DEFAULT_GLOBAL_CONFIG) {
var store = BindingStoreFactory.create(DEFAULT_GLOBAL_CONFIG);
angular.extend(store, {
getUiSessionTimeout: getUiSessionTimeout,
getMaxBulkGiftCardPurchaseAmount: getMaxBulkGiftCardPurchaseAmount,
getMaxGiftCardPurchaseAmount: getMaxGiftCardPurchaseAmount,
getStartOfDayDrawerAmountLimits: getStartOfDayDrawerAmountLimits,
getFailoverSwitchTimeout: getFailoverSwitchTimeout
});
Code
(function() {
'use strict';
angular
.module('app')
.factory('GlobalConfigService', GlobalConfigService);
/*@ngInject*/
function GlobalConfigService(whttp,
GlobalConfigStore) {
return {
get: get
};
function get(config) {
return whttp.get('/globalconfiguration', config)
.then(function(response) {
return GlobalConfigStore.update(response.data);
});
}
}
})();
Rest
Questions
Mark's POS Project overview
By Dmytro Golysh
Mark's POS Project overview
- 559