Tuesday, December 12, 2017

Mobile Analytics

gitflow vs github flow



https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow


http://endoflineblog.com/gitflow-considered-harmful


https://www.atlassian.com/git/tutorials/comparing-workflows/feature-branch-workflow


https://guides.github.com/introduction/flow/



  1. Feature y depends on feature x and not it's branched of X
  2. How does it work with CI
  3. Multiple features need to be assembled to form a release
  4. very complex, need a tool to master on top of git-flow


Gitflow with source tree

https://www.youtube.com/watch?v=z53JJ7P78Vc

https://www.youtube.com/watch?v=eTOgjQ9o4vQ





  1. How does gitflow handle Multiple release branches at the same time
  2. How to handle feature branch based on master (may be use hot fix )
  3. Hot fix need to be merged to release, develop, master branches
  4. How to kill the develop branch and start from master














Popular coding challenge websites



https://www.hackerrank.com/work
https://codility.com/
https://www.testdome.com/
https://www.qualified.io/
https://coderbyte.com/
https://medium.freecodecamp.org/the-10-most-popular-coding-challenge-websites-of-2016-fb8a5672d22f




Friday, December 8, 2017

SNS , SQS , Push Notification






http://budiirawan.com/how-to-connect-amazon-sns-to-amazon-sqs-queues/

http://tech.zooplus.com/event-driven-using-aws-infrastructure-design/


https://www.infoq.com/articles/AmazonPubSub

https://hackernoon.com/applying-the-pub-sub-and-push-pull-messaging-patterns-with-aws-lambda-73d5ee346faa

https://www.pubnub.com/blog/2014-08-21-amazon-sns-pubnub-differences-pubsub/




  • How to cancel the message?


Amazon AWS SQS( Simple Queue Service) 

            Receivers have to poll SQS to receive messages






Persistent Push Messages


https://blog.pusher.com/how-to-add-message-history-to-your-pusher-apps/

https://blog.pusher.com/smart-notifications-with-pusher-and-sendgrid/

Presence Channel


https://pusher.com/docs/webhooks


Presence events


Notify your application whenever a user subscribes to or unsubscribes from a Presence channel.

https://aws.amazon.com/blogs/compute/building-loosely-coupled-scalable-c-applications-with-amazon-sqs-and-amazon-sns/




Thursday, November 30, 2017

Build a desktop application with Electron

Magento 2 local setup - Version 2


it seems the following docker image works better for magento 2 local development


To Clean up docker image, volume, etc (Optional)


# docker system prune

# stop all containers:
# docker kill $(docker ps -q)

# remove all containers
# docker rm $(docker ps -a -q)

# remove all docker images
# docker rmi $(docker images -q)

# remove all volumes
#docker volume rm $(docker volume ls -f dangling=true -q)



  • git clone https://github.com/markoshust/magento2-docker.git
  • cd magento2-docker
  • docker-compose run --rm setup

after this command the DB setup would have completed and will have just the DB Image



  • Un comment docker-compose.override
  • mv docker-compose.override.yml.dist docker-compose.override.yml
  • docker-compose up -d app

This will create another 2 docker container, so we should have 3 containers running.



  • cp CONTAINER ID:/var/www/html ./ .      ( this is the container id of magento2docker_phpfpm_1)
  • http://m2.localhost:8000/index.php
  • Admin : http://m2.localhost:8000/index.php/admin_16wb2m/










Sample HelloWorld Module


Follow the steps in 











Connecting to Database












Wednesday, November 29, 2017

Aws Mobile Analytics


Dabbling on Aws Mobile Analytics





Monday, November 27, 2017

Course :MAGENTO 2 TESTING AND OPTIMIZATION

Course Mastering Magento2

Magento 2



https://www.udemy.com/mastering-magento-2/



https://u.magento.com/fundamentals-of-magento-2-development#.WhbBqrT81-U


http://mageclass.com/screencast-a-gentle-introduction-to-magento-2-for-magento-1-developers/

https://www.magestore.com/magento-2-tutorial/


https://www.thedash.com/



Install Docker

https://docs.docker.com/docker-for-mac/install/




11/25

https://github.com/clean-docker/Magento2 (This works)

https://rafaelstz.github.io/magento2/Install-Magento2-Docker-Development.html




Other Good Images

https://github.com/fballiano/docker-magento2


Magento Data Volumes

https://github.com/mageinferno/magento2-docker-compose


https://github.com/loganstellway/magento2-docker-swarm



Tutorials

http://mageclass.com/screencast-a-gentle-introduction-to-magento-2-for-magento-1-developers/
https://alankent.me/category/magento/
https://www.youtube.com/watch?v=tRmraOgVWtk

https://firebearstudio.com/blog/the-ultimate-magento-2-tutorial.html


Books


https://www.safaribooksonline.com/library/view/magento-2-development/9781785289897/
https://www.safaribooksonline.com/library/view/mastering-magento-2/9781785882364/
https://www.safaribooksonline.com/library/view/learning-magento-2/9781783288250/
https://www.safaribooksonline.com/library/view/magento-2-cookbook/9781785887062/



Video Tutorials

https://u.magento.com/fundamentals-of-magento-2-development#.WiLIG7Q-d24
https://www.safaribooksonline.com/library/view/magento-2-testing/9781787282308/
https://firebearstudio.com/blog/magento-2-video-tutorials.html




Build & Release



Less Vs Saas

https://github.com/SnowdogApps/magento2-frontools


Tech Stack


  1. Varnish
  2. Redis
  3. Elastic Search
  4. Gulp
  5. Docker
  6. How to upgrade new version of Magento.
  7. Composer how does it work for custom Module.
  8. Php Storm
  9. Testing
  10. Code Migration
  11. Database Migration
  12. 50% traffic is on mobile , how to optimize for mobile







Saturday, November 25, 2017

Magento 2 Local Setup






1. Create an account in Magento connect and have Public and private Key






2. Install Docker Edge Channel







3.  Once Docker Installed Execute this command

    git clone https://github.com/clean-docker/Magento2.git m2-docker &&
cd m2-docker && docker-compose up -d ;


Reference : https://rafaelstz.github.io/magento2/Install-Magento2-Docker-Development.html





4. Log Into docker Image


  docker exec -ti m2docker_apache_1 bash


5. Install Magento

composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition magento2


6. Get Mysql Ip

  docker inspect m2docker_db_1 | grep IPAddress


7. Start the setup of Magento2

















8. Docker Tips
    
      The first time installation might not work right if so if you wanted to clean up docker use these handy commands


# stop all containers:
# docker kill $(docker ps -q)

# remove all containers
# docker rm $(docker ps -a -q)

# remove all docker images
# docker rmi $(docker images -q)

9. How to setup Php Storm and edit the files in the container
        ToDo: Need to research how to setup docker volumes so that files can be shared and edited.         
10.   Links
           http://localhost:8080/
           http://localhost/
           http://localhost:8025/#
           http://localhost/magento2/
           http://localhost/magento2/admin_6p1kqi/

11.How the edit the magento2 files

         under the directory there is a mapping folder src

             m2-docker/src/magento2




ToDo:


   these Steps can be further simplified  with just one command docker-compose up;