Phalcon CMF: Yona E-commerce

Source: https://github.com/oleksandr-torosh/yona-ecommerce

Yona E-commerce
E-commerce CMF based on Phalcon PHP Framework

Installation:

  1. clone the github repository

    Note: The description on the github said to clone with ‘git clone git@githubcom:oleksandr-torosh/yona-ecommerce.git’ BUT IT GAVE ME ERROR (ALSO the git url IS WRONG! it is supposed to ‘@github.com…’ NOT ‘@githucom…’
  2. Go into ‘yona-ecommerce/’ directory then use composer to install the dependencies
  3. Use ‘bower install’

    I got an error “Error: Cannot find module ‘internal/fs'”. From this https://github.com/bower/bower/issues/2393, I tried to run bower locally ‘npm install bower’

    Then run ‘node_modules/bower/bin/bower install’

    But when I tried to run again ‘bower install’, the error still persist!
    Actually I continued to execute #4 and #5 below but I still curious about the bower!
    I checked my current node (7.2.1) and npm (3.10.10) version

    BUT I CAN’T CHECK BOWER VERSION. IT SHOWED THE SAME ERROR LIKE ABOVE!

    I read some clue like install node earlier version (downgrade) like version 4.1.1

    Now my node version is 4.1.1

    Update npm

    But ‘bower install’ still showed the same error!
    THE WORKING SOLUTION IS DOWNGRADE NODE TO VERSION 6.9.1! First clean npm cache and remove ‘node_modules’ directory!

    Install node v 6.9.1

    Install bower (locally???)

    Check bower version (bower -v) is working now

    Now ‘bower install’ run well (SAME WITH ‘node_modules/bower/bin/bower install’ ABOVE!)

    from ‘bower.json’. It’s a list of packages that required. ‘.bowerrc’ is a file to put the bower setting like where to put the downloaded packages. From the content of .bowerrc

    SO ‘bower install’ would download the packages and put its into /public/components/ directory of this website!
  4. Next, run ‘npm install -g less’

     
  5. Then run ‘npm install -g less-plugin-clean-css’

     
  6. Set the file permission (it may be not good but i have to set all files in ‘yona-ecommerce’ to 777)

     
  7. Run it on your browser (http://localhost/works/phalcon/yona-ecommerce/public/).
    OK. This yona-ecommerce still in early version (version 0.0.1???) so no much can be displayed. It only showed
    ‘Frontend
    index’
    The website setting in /config/.env file
    I can modify the frontend text in /app/views/frontend/index/index.volt file
    Also there is still no database (there is a migration file in /storage/migrations/ but I dont know how to do it. https://docs.phalconphp.com/en/latest/reference/migrations.html???)
    No much to learn from this BUT I THINK I CAN LEARN IT FROM YONA-CMS (The developer is same though)

Leave a Reply

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