UnifiedTransform — Getting Started in 2021

Prerequisites

Be sure to have php, composer and mariadb, setup on your computer.

Installing php 7.3 on Windows (ref: Jeff Geerling’s Blog)

  1. Install the Visual C++ Redistributable for Visual Studio 2015 — this is linked in the sidebar of the PHP for Windows Download page, but it’s kind of hidden. If you don’t do this, you’ll run into a rather cryptic error message, VCRUNTIME140.DLL was not found, and php commands won't work.
  2. Download PHP for Windows. I got the zipped 7.3 VC15 x64 Non Thread Safe version.
  3. Expand the zip file into the path C:\PHP7
  4. In the C:\PHP7 folder, rename the file php.ini-development to php.ini.
  5. Open php.ini in a text editor
  6. Change memory_limit from 128M to 1G
  7. Remove the preceding semi-colon from the following lines:
; extension_dir = "ext"
extension=curl
extension=fileinfo
extension=gd2
extension=mbstring
extension=openssl
extension=pdo_mysql
extension=pdo_sqlite
extension=sockets
You should see something like this 🎉

Installing composer on Windows

Use the Windows Installer on the Composer Download page.

Installing mariadb on Windows

  1. Go to the Maria DB Download page
  2. Choose your OS from the dropdown. My OS is MS Windows (64-Bit)
  3. Download and Install
  4. Take note of the root password you specified during installation. It’ll be useful later

Setup mariadb data for the UnifiedTransform project

MariaDB comes with a GUI program called HeidiSQL. We can use that to create our unified_transform_db database, and unified_transform_user user.

  1. Start HeidiSQL and enter the mariadb root password.
  • Click Add
  • Enter Username: unified_transform_user
  • Enter Password: super_secret_password
  • Repeat Password
  • Click Add Object
  • Select the unified_transform_db database
  • Tick the checkbox beside Database: unified_transform_db , and Save

Setup UnifiedTransform project

  1. Clone the repository
git clone https://github.com/changeweb/Unifiedtransform
Takes a while
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=unified_transform_db
DB_USERNAME=unified_transform_user
DB_PASSWORD=super_secret_password
DB::table('users')->insert([
'name' => "superadmin",
'email' => 'superadmin@example.com',
'password' => bcrypt('secret'),
'role' => 'master',
'student_code' => 0000000,
'active' => 1,
'verified' => 1,
]);
//\RenatoMarinho\LaravelPageSpeed\Middleware\InlineCss::class,
//\RenatoMarinho\LaravelPageSpeed\Middleware\ElideAttributes::class,
//\RenatoMarinho\LaravelPageSpeed\Middleware\InsertDNSPrefetch::class,
//\RenatoMarinho\LaravelPageSpeed\Middleware\RemoveComments::class,
//\RenatoMarinho\LaravelPageSpeed\Middleware\TrimUrls::class,
//\RenatoMarinho\LaravelPageSpeed\Middleware\RemoveQuotes::class,
//\RenatoMarinho\LaravelPageSpeed\Middleware\CollapseWhitespace::class,
// $this->app->register(\Barryvdh\Debugbar\ServiceProvider::class);

Build the Front End

  1. Open an Administrator PowerShell prompt, and run:
npm install --global windows-build-tools
%USERPROFILE%\.windows-build-tools\python27
npm install
npm run development

Let’s run the project:

In the UnifiedTransform directory, run:

php artisan serve

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ikechi Michael

Ikechi Michael

I’ve learned I don’t know anything. I've also learned that people will pay for what I know. Maybe that's why they never pay.