Methodologies for Rapid Software Development Course Project
An example of a generated application can be found here.
- username: admin
- password: admin
This project uses the following technologies and tools:
- Import XMI2NG project into your Eclipse workspace
- Run the src/generator/Main.java class with the following command line arguments:
- path to model file in XMI format exported from MagicDraw
- path to directory where the code generated from given model will be saved
Back-end layer is implemented by using Microsoft ASP .NET WEB API with the use of additional Microsoft's technologies such as Entity Framework Code First and OData .NET. An example of a generated back-end layer of an application can be seen on the following git repository. An instance of the back-end app is running on an Azure cloud server and is linked directly to the aforementioned git repository.
Front-end layer is implemented by using AngularJS 1.5 and Bootstrap frameworks. An example of a generated front-end layer of an application can be seen here.
Several techniques are used to provide preserving manually writted code:
- Protected areas (code blocks between predefined comments)
- Partial classes
$scope.Generisi_izvestajClick = function() {
// USER CODE STARTS HERE
var initInjector = angular.injector(['ng']);
var $http = initInjector.get('$http');
var host=$scope.$parent.host;
$http.get(host+'api/operations/Generisi_izvestaj?jezik=srp', {responseType: 'arraybuffer'})
.success(function (data) {
var file = new Blob([data], {type: 'application/pdf'});
var fileURL = URL.createObjectURL(file);
window.open(fileURL);
});
// USER CODE ENDS HERE
}
An example of the usage of partial classes can be seen here for model classes and here for controller classes.
MIT