My Magento2 Learnings

I primarily use WordPress and WooCommerce for my websites but I’ve seen Magneto pop up quite a few times now and figured I should give it a shot to see how it compares. The script below should actually work on any OS depending on your configuration, please get in touch if you actually want to use this and have a suggestion.

Setting up

This script assumes a little bit of basic Linux knowledge (stuff like changing directories). The neatest thing I came up with here was to run the repository cloning as a background process so they can run parralel. repository – Clone multiple git repositories in one local directory? – Stack Overflow

All this does at this stage is copies the repositories I would like to be able to use and read, installs the pestle.phar, n98-magerun2.phar and masquerade.phar packages and also the mage2gen Python package.

# Yes I am aware there is probably a much better way of doing this but I am tired
cd yourdir # replace with where you want it to go
git clone https://github.com/magento-notes/magento2-exam-notes.git && \
git clone https://github.com/meanbee/docker-magento2.git && \
git clone https://github.com/DivanteLtd/vue-storefront.git && \
git clone https://github.com/netz98/n98-magerun.git && \
git clone https://github.com/magento/pwa-studio.git && \
git clone https://github.com/astorm/pestle.git && \
git clone https://github.com/kiwicommerce/magento2-cron-scheduler.git && \
git clone https://github.com/vpietri/magento2-developer-quickdevbar.git && \
git clone https://github.com/aliuosio/mage2.docker.git && \
git clone https://github.com/AmpersandHQ/ampersand-magento2-upgrade-patch-helper.git && \
git clone https://github.com/nuzil/magento-postman.git && \
git clone https://github.com/elgentos/masquerade.git && \
git clone https://github.com/extdn/installer-m2.git && \
git clone https://github.com/mage2click/m2c.git
cd /home/yourname/.local/bin # replace with your bin directory
# I should really remember what the arguements are for cURL by now lol
curl -LO http://pestle.pulsestorm.net/pestle.phar
curl -sS -O https://files.magerun.net/n98-magerun2.phar
curl -L -o masquerade.phar https://github.com/elgentos/masquerade/releases/latest/download/masquerade.phar
chmod +x ./pestle.phar
chmod +x ./n98-magerun2.phar
chmod +x ./masquerade.phar
pip3 install mage2gen

My next post will cover how it goes when I actually get to use this. My plan is to use the best of the Docker images (after reading through the Dockerfile for them) and leverage the Vue storefront that is available on GitHub. I know it is probably a better idea to stick with the official Progressive Web Application (PWA) Studio and React but the Vue storefront has been around longer (I think) and has been on my radar for a long time.

Links and Awesome Resources

magento-notes/magento2-exam-notes: Preparation notes for Magento 2 Certified Professional Developer exam
clean-docker/Magento2: Docker Image to Magento 2 local development in Mac, Linux and Windows
DavidLambauer/awesome-magento2: Curated list of awesome Magento 2 Extensions, Resources and other Highlights
meanbee/docker-magento2: 🐳 Docker containers with all required Magento 2 dependencies installed available as FPM through Nginx and CLI
DivanteLtd/vue-storefront: Vue Storefront – PWA for eCommerce. 100% offline, platform agnostic, headless, Magento 2 supported. Always Open Source, MIT license. Join us as contributor ([email protected]). Check out our new blog: https://blog.vuestorefront.io/
Vue Storefront Blog | Vue Storefront Blog
netz98/n98-magerun: The swiss army knife for Magento developers, sysadmins and devops. The tool provides a huge set of well tested command line commands which save hours of work time. All commands are extendable by a module API.
markshust/docker-magento: Mark Shust’s Docker Configuration for Magento – tutorial
colinmollenhour/modman: Modularize extensions using symlinks. Voted #1 Magento tool by @WebShopApps!
magento/pwa-studio: 🛠Development tools to build, optimize and deploy Progressive Web Applications for Magento 2.
Project setup
Project structure
Add a static route
Modify site footer
Production launch checklist
React tutorial
Progressive web apps
PHP Composer
Yarn package manager
gwillem/magento-malware-scanner: Scanner, signatures and the largest collection of Magento malware
php-enqueue/enqueue-dev: Message Queue, Job Queue, Broadcasting, WebSockets packages for PHP, Symfony, Laravel, Magento. DEVELOPMENT REPOSITORY – provided by Forma-Pro
Cache snippet | Mage2Gen
rafaelcgstz/magento2 – Docker Hub
MageSpecialist DevTools for Magento – Chrome Web Store
unirgy/convertm1m2: A simple script to convert extensions from Magento1 to Magento2
magento/data-migration-tool: Magento Data Migration Tool
aliuosio/mage2.docker: OSX/Linux Docker Nginx(Pagespeed)-MariaDB-PHP-Redis-Elastic-Watchtower Setup
davidalger/warden: Warden is a CLI utility for orchestrating Docker based developer environments
AmpersandHQ/ampersand-magento2-upgrade-patch-helper: Helper script to aid upgrading magento 2 websites by detecting overrides
nunomaduro/phpinsights: 🔰 Instant PHP quality checks from your console
roma-glushko/tango: Tango is a command-line tool for analyzing access logs 💃
Magento 2 – composer patches helper – Chrome Web Store

Stay tuned to see if the experiment was successful or not.

Leave a comment

Your email address will not be published. Required fields are marked *