How to install Magento2: Create a development environment for Magento 2

By Miguel Balparda – Magento Developer at Santex

This post it’s meant to give an idea of how to create a development environment for Magento Beta 2 dev.

This post will NOT attempt to explain the requirements to use Magento 2, it is only a guide to install Magento2 dev Beta and begin to understand the new directory structure and modules. Remember that this version is not ready for production.

The time required for a complete installation is between 1 and 2 hours depending on the internet connection available.

The minimum requirements were updated between versions 1 and 2 and you may find that a server where 1 runs might not be suitable for Magento 2 without modifying versions of the server software (MySQL, Apache, PHP).

We will use a virtual machine to preinstall all the necessary components to ensure compatibility with Magento 2 without modifying the components of the real or host machine.

93% of this guide will happen in the console without making differences between operating systems.

First step is to clone the VM with

git clone https://github.com/rgranadino/mage2_vagrant.git

Then we enter the directory with

cd mage2_vagrant

to run

git submodule update --init

Magento2, Magento2 sample data and the required libs like composer are listed as submodules in the .gitmodules file.

Once we have all the dependencies installed within the same directory we run

vagrant up

to initialize and provision the VM. We deduct vagrant is installed. If not then enter https://www.vagrantup.com/.

The process is long and without user intervention. This VM is provisioned with puppet. You may find puppet manifest at Manifests/mage.pp. Once complete we must add to the hosts file of the real machine the line

192.168.56.10 mage2.dev

to tell our PC to resolve the domain mage2.dev to the IP of the virtual machine.

Once the whole process is finished we can proceed to the installation of Magento2 entering http: //mage2.dev/ or from the VM.

Personally I chose the installation via command line using

reinstall -s

from the virtual machine to install Magento with Sample data included.

In case of choosing the installation via web you need access the VM with

vagrant ssh

and run

cd /vagrant/data/magento2

composer install

to install the required packages via composer.

To read more about the installation and find all the necessary information and material visit Damian Culotta’s official website (Spanish) or visit http://magenticians.com/installing-magento-2-composer (English).

After the installation, your freshly installed Magento2 will be available at http: //mage2.dev/ and the admin will be at http://mage2.dev/admin

Dashboard access
User: admin
Password: p4ssw0rd

Some images

homepage-m2.png

category-m2.png

category-m2.png

pp-m2.png

Admin Dashboard

admin_m2.png

If you use the web interface to install, these are the accesses to the database:

Host: 127.0.0.1
User: root
Pass: mage2
DB name: mage2

About the Author – Miguel Balparda has been developing Magento for almost five years. During this time, he has witnessed the exponential growth the platform has undergone; today it is one of the largest and most popular online stores in the world. There is a great deal of documentation and resources available for both merchants and developers. It is best to start by scanning the official Magento website, where you can find resources to get in touch with the application, as well as free extensions to learn the structure of modules. Miguel can be contacted at communication@santexgroup.com

Be Green! Be a Changemaker.

By Roxana Morano

Small habits that help us build a better world for future generations.

Do you want to be a better person? Do you want to leave a better world to your children? You can save the world with your daily actions.

At Santex we encourage you to be green!

Reduce the use of resources, Re-use them as much as you can and Recycle them.

Santex is a green company, and we are Sin títuloproud of that.

Santex Changemaker Program is a global program that focuses on three main topics:

A) Recycling

B) Responsible consumption

C) Community

2

A) Recycling

Here at Santex we recycle:

Plastic:

Empty plastic bottles and bags are put into the grey container next to the kitchen. When it is full, they are taken to a big container we have installed on Velez Sarsfield Square, in front of Patio Olmos. CEIPOST Foundation takes all that plastic, process it and sells it to different companies to use it in construction, clothes, etc. This company is giving jobs to many people in Cordoba and also helps to reduce trash and improves the environment. You can find more information on www.ceipost.org.

Plastic Caps are taken to a big container in Hipermercado Libertad, to help children from a Hospital in Alta Gracia.

Technological Trash:

Batteries and technological trash are also collected here. They are taken to “Municipalidad de Cordoba”, who disarms and classifies technological trash to be re-used as part of new devices, and put batteries on safe cells to avoid contamination.

Paper and cardboard:

All paper and cardboard collected in the brown boxes are sent to Cotolengo Don Orione to help children over there.

B) Responsible consumption

Our first initiative was to educate about the use of water and paper.

We have some great stickers everywhere. Next to a water tap, where you can see: “Save Water”, just to let you know, we should not let water run unnecessarily.  Some other stickers said: “Don’t throw away too much paper!” Everything is just part of the same program.

We should reduce our consumption in order to conserve trees and drinkable water.

C) Community

We have given computers  that  are not in use anymore to low-income  school. We also have given IT lessons to children and adults through all year 2013. On 2015 we are planning to start again with a similar program.

NOT ENOUGH FOR YOU?

If all these is not enough for you, and you want to do more for the environment, here you have some ideas you can follow:

  •       Plant a tree. Even if you live in an apartment, you can plant trees in big pots on your balcony, or you can grow seedlings and gift them to friends, as I do.
  •       Grown you own vegetables and create as many plants as you can. If you don’t have enough space you can make them and give them as a gift.
  •       Make a worm farm for compost, there you can recycle organic waste. If it is made properly, it should not smell at all. You can buy Californian worms on the Internet. They are not expensive and 3work for you creating the best compost for your plants.

 

 

 

Change your habits, change your mind, change the World.

 

Roxana Morano is a Java and Python developer for Santex. As one of our volunteers, in this article she explains how we live the Santex Changemaker Program.