Skip to content

rauwwww/programming_challenge

Repository files navigation

programmingchallenge_smartphone

Smartphone project programming challenge amero

Smartphone

Version: 0.0.1

This repository servs for the Smartphone assignment. Its built with PHP and Laravel.

How to use

Pre-required things:

  1. You need to have Composer installed.
  2. To run the vagrant setup you need to have installed VirtualBox and Vagrant
  3. Make sure that you have the latest PHP version installed: PHP Installation for MacOS, Windows

Installation

  1. Clone this repository git clone [email protected]:rauwwww/programming_challenge.git

  2. cd programming_challenge

  3. Install all of the packages by running composer install

  4. Make sure that the following code is in your /etc/hosts (Mac) / \WINDOWS\system32\drivers\etc\hosts (Windows) file.

    192.168.10.10 smartphone.app
    
  5. Run the following command depending on your OS to generate the homestead.yaml file

    (MacOS) -> php vendor/bin/homestead make
    -----------------------------------------
    (Windows) -> vendor\\bin\\homestead make
    
  6. Open your homestead.yaml file and change the sites map from homestead.app to smartphone.app

  7. Run vagrant up

  8. Run chmod -R 777 storage; cp -p .env.example .env; php artisan key:generate

  9. Run vagrant ssh cd programming-challenge then Run php artisan migrate and php artisan db:seed to build the database with new data, user passwords 123456

If you didn't received any error on this steps you can go to your browser and access http://smartphone.app or http://192.168.10.10.

  1. DB connection 127.0.0.1 33060 homestead secret

Installation issues

  1. If you get a message like 'Oops, something went wrong' you need to go to /config/app.php and set true the APP_DEBUG. After you've done this and you get the message RuntimeException or RuntimeError try:

    chmod -R 777 storage; cp -p .env.example .env; php artisan key:generate
    

    More documentation in here.

  2. If you get the error The UID used to create the VM was: xx when you run vagrant up, documentation is here.

!windows Error:

'key' => env('APP_KEY'),

'cipher' => 'AES-256-CBC',

Solution:

chmod -R 777 storage; cp -p .env.example .env; php artisan key:generate

http://laravel.io/forum/04-22-2014-whoops-looks-like-something-went-wrong-with-new-installation

Documentation

If you need more documentation about Laravel and PHP here are some good places where you can look at.

  1. Laravel Documentation
  2. The Laravel Book
  3. Laracasts
  4. Laravel Cook Book

Contact

[email protected]

About

amero programming challenge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages