It is written with .Net Core, the new cross-platform framework from Microsoft. Actual MeasureThat.net application is hosted in the Microsoft Azure. It uses SQL Server as a database.
But it is possible to run the exact same application on the Linux machine using PostgreSQL as a database. This post shows how it can be done.
To be able to follow the steps described here you will need to have machine with Linux installed. I used Virtual Machine with Ubuntu 16.04:
Now everything is ready to build the application. Step into the folder with source code (MeasureThat.net/src/BenchmarkLab$) and run restore dotnet, npm and bower packages (it will take couple of minutes):
Build the application:
Build should succeed:
Prepare the configuration file
Open appsettings.json file in the text editor and:
Disable External authentication: set UseFacebookAuthentication / UseGoogleAuthentication / UseTwitterAuthentication / UseMicrosoftAuthenticaiton to false (Please let me know in the commens if you want to be able to use External authentication, I can explain how it can be done )
In this topic I will tell which dependencies are need to be able to run http://MeasureThat.Net application on Ubuntu 16.04. Although there are quite a few dependencies, none of them are unique and should be known to the developers. So, here is what is needed:
This is the first post related to the topic of running http://measurethat.net application on the linux machine. In this post I will show how to create a virtual machine with Linux (Ubuntu 16.04) to be able to follow the next steps (actuall building and running the application). If you already have machine with Linux you probably don’t need to follow this steps. So here it goes, there are the steps I followed to create VM:
Whenever I needed SEO friendly urls in asp.net apps, I have been using UnidecodeSharpFork library to do just that. It is a good tool that transliterates Unicode to ASCII. Unfortunately, published binaries on NuGet are not compatible with .net core and author of the tool was no longer working with .net. Since the library is good and useful I decided to revitalize it: I republished it to GitHub: https://github.com/thecoderok/Unidecode.NET
Sometimes there is a need to find out what are the environment variables that are visible to Visual Studio process. While there are ways to see them via Macro window or Build configuration windo, there is a universal way of doing that. The good old friend, Process Explorer tool from Mark Russinovich & Co. Among many other things it can show list of environment variables for any process.
Just start the procexp.exe application, point to the process you are interested, double click and open Environment tab: