Local installation

MDriven empowers businesses and developers to build and manage applications faster and smarter through Model-Driven Development (MDD). It bridges the gap between business needs and technical execution, turning models into fully functional applications with ease.

With MDriven you can:

  • Accelerate Development
  • Adapt Quickly
  • Collaborate easily
  • Deploy Anywhere

Step -1: Login to the Ubuntu Server via SSH.

ssh username@IP_Address -p Port_number

Connect via SSH to your server


Step -2: Update Server.

sudo apt-get update
sudo apt-get upgrade

Step -3: Secure Server.

sudo apt-get install openssh-server fail2ban

SSH assault can be avoided by utilizing Fail2ban

Step -4: Install Packages and Libraries.


Install apt-transport-https

sudo apt-get install -y apt-transport-https

This ensures you can safely fetch packages, package metadata and add third-party repositories using HTTPS ensuring data integrity and privacy during downloads Install the .NET SDK version 8.0 or Higher

sudo apt-get install -y dotnet-sdk-8.0

This contains the software development kit (SDK) for building and running applications using the .NET platform. What it does:

  1. It includes tools such as the .NET CLI(Command Line Interface), compilers, and build tools needed to develop, build, and publish .NET applications
  2. It also installs the .NET runtime
  3. Multi-Language Support - C#, F# and VB.NET4.Cross-Platform Development

Check that the install is successful

dotnet --list-runtimes

Step -5: Download MDriven Server from Official Site.


The command wget downloads files from the web, Replace mdrivenserver_xxxx.zip with the actual name of the latest fullname of the lastest version of the MDriven Server from the main website.

wget https://www.mdriven.net/downloads/mdrivenserver_xxxx.zip -O downloaded_file.zip
-O downloaded_file.zip: Optional flag to rename the downloaded file

Step -6: Create a directory in /var/www/ - Directory.

cd /var/www/
mkdir mdrivenserver [Choose a suitable of your preference]

Unzip the files into the Directory

unzip downloaded_file.zip -d /var/www/mdrivenserver

Notes: If the unzip utility is not installed, you can install it with:

sudo apt-get install -y unzip

Step -7: Download MDriven Turnkey Server from the Official Site.

wget https://www.mdriven.net/downloads/mdriventurnkeyserver_xxxx.zip -O downloaded_file.zip

Step -8: Create a directory in /var/www/ - Directory.

cd /var/www/
mkdir mdriventurnkey [Choose a suitable name of your preference]

Unzip the files into the Directory

unzip downloaded_file.zip -d /var/www/mdriventurnkey

Step -9: Create MDrivenServer Service File. We have to create a service file to MDrivenServer. Let's create a service file 'mdrivenserver.service' in /etc/systemd/system.

sudo nano /etc/systemd/system/mdrivenserver.service

Add the following aspects to the newly created service file.

[Unit]
Description=MDriven Server Service
After=network.target
[Service]
WorkingDirectory=/var/www/mdrivenserver
ExecStart=/usr/bin/dotnet /var/www/mdrivenserver/AppCompleteGenericCore.dll -510 - nohttps
Restart=always

KillSignal=SIGINT
SyslogIdentifier=mdriven-server
User=root
Environment=ASPNETCORE_ENVIRONMENT=Production
Environment=DOTNET_PRINT_TELEMENTRY_MESSAGE=false

[Install]
WantedBy=multi-user.target

Step -10: Create MDrivenTurnkey Service File. We have to create a service file to MDrivenTurnkey. Let's create a service file 'mdriventurnkey.service' in /etc/systemd/system.

sudo nano /etc/systemd/system/mdriventurnkey.service

Add the following aspects to the newly created service file.

[Unit]
Description=MDriven Turnkey Server Service
After=network.target
[Service]
WorkingDirectory=/var/www/turnkey
ExecStart=/usr/dotnet /var/www/mdriventurnkey/StreaminAppCoreWebApp.dll -port=5011 -nohttps –[remove the -nohttps while in production]
Restart=always
KillSignal=SIGINT

SyslogIdentifier=turnkey-server
User=root
Environment=ASPNETCORE_ENVIRONMENT=Production
Environment=DOTNET_PRINT_TELEMENTRY_MESSAGE=false

[Install]
WantedBy=multi-user.target

Finally, set the root user's permissions for these service files.

sudo chmod 775 /etc/systemd/system/mdrivenserver.service
sudo chown root: /etc/systemd/system/mdrivenserver.service

sudo chmod 775 /etc/systemd/system/mdriventurnkey.service
sudo chown root: /etc/systemd/system/mdriventurnkey.service

Step -11: Run MDriven Server and MDriven Turnkey.

sudo systemctl start mdriven.service
sudo systemctl start mdriventurnkey.service

Use the above commands to launch the instance of MDriven Server and MDriven Turnkey respectively. Then, use the following command to see the service's current status. Furthermore, the installation of MDriven Server and MDriven Turnkey was successful if they are shown as active.

sudo systemctl status mdriven.service
sudo systemctl status mdriventurnkey.service

Now, you can access MDriven Server and MDriven Turnkey by entering the following URL respectively

"http://<your_domain_or_IP_address>:5010"
"http://<your_domain_or_IP_address>:5011"

Finally, use the following command to start MDriven Server and MDriven Turnkey services automatically after restarting the server

sudo systemctl enable mdrivenserver.service
sudo systemctl enable mdriventurnkey.service

After successfully installing the MDriven Server: MDriven Turnkey successfully, you can start your career in modeling with MDriven

This page was edited 57 days ago on 01/20/2025. What links here