Fotista Auction

Source: https://github.com/fotistas/fotista (Laravel 4.2)

Installation:

  1. Clone from https://github.com/fotistas/fotista


    Then go to ‘fotista’ directory
  2. Install required components:
  3. Create a database ‘auction’ via phpmyadmin
  4. Import the sql script ‘auction-20140823-0211.sql’ in ‘/sql archive/’ dir (extract the zip first).
  5. Set a few configuration settings in /app/config/app.php like

    and the database (Laravel 4 dont use .env file to store the database setting) in /app/config/database.php

     
  6. generate the new key

     
  7. set file permission to 777 for /app/storage

     
  8. Make some update on the database, especially for table ‘images’, I need to remove and replace ‘http:\\/\\/localhost\\/auction\\/public\\/uploads\\/’ in ‘images’ field because I just need the image name. No need the url. With this I can show the product image and the thumbnails. I did the replace in my text editor geany instead of on phpmyadmin because it’s easier to do it in geany. Also modified a few files to display the images and the thumbnails properly:
    in /app/views/home.blade.php, replace  ‘$product -> thumbnail’ to ‘{{ URL::to( ‘uploads/’ .  $product -> thumbnail) }}’ (TWICE) like this

    Also the same for /app/views/store.blade.php and /app/views/auction.blade.php. Same also for /app/views/product.blade.php BUT at ‘$product -> large’ like this:

    Also the same for ‘admin’ page: /app/views/admin/products.blade.php, /app/views/admin/product.blade.php, /app/views/admin/auction.blade.php.
  9. Open it http://localhost/works/laravel/fotista/public/fotista-frontThe admin page http://localhost/works/laravel/fotista/public/admin/
    http://localhost/works/laravel/fotista/public/admin/productsfotista-admin-productlist
  10. SOME ERRORS & SOLUTION:
    The first time, I got this error:

    SOLUTION: It because I forgot to set the file permission at #7 (ref:http://stackoverflow.com/questions/24982598/laravel-error-in-exception-handler)
    NOTE: To get better debug environment, I need to set ‘debug’ to ‘true’ in /app/config/app.php!

    After that I got another error:

    SOLUTION: That because I forgot to set a new key like at #6 (ref:http://laravel.io/forum/04-22-2014-whoops-looks-like-something-went-wrong-with-new-installation)
    NOTE: For laravel 4, No need to create .env file like laravel 5
    Then I got another error:

    SOLUTION: I forgot to set the database setting in /app/config/database.php like at #5 (ref: http://laravel.io/forum/07-02-2014-sqlstatehy000-1044-access-denied-for-user-localhost-to-database-forge?page=1)

UNSOLVED ERROR:
When I tried to click ‘Auction started click here to open it’. It didn’t work. It did open a new page but do nothing. Just printed ‘Loading…’. From the console, it’s looking for a file in http://localhost/works/laravel/fotista/public/api/auction BUT THERE IS NO /public/api/auction DIR AVAILABLE!
The controller responsible for this is /app/controller/AuctionController.php, The view is /app/views/auction-app.blade.php and the javascript file in /public/js/auction-app.js
HOW TO MAKE THE AUCTION FULLY WORKS???? ESPECIALLY THE ANGULAR JS ‘auction-app.js’???
PLS TRY THIS GITHUB: https://github.com/yervand951/angular-auction
CONVERT TO LARAVEL 5 ???? ref: https://mattstauffer.co/blog/upgrading-from-laravel-4-to-laravel-5 and https://laravel.com/docs/5.0/upgrade.

Leave a Reply

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