Smartphone project programming challenge amero
Version: 0.0.1
This repository servs for the Smartphone assignment. Its built with PHP and Laravel.
- You need to have Composer installed.
- To run the vagrant setup you need to have installed VirtualBox and Vagrant
- Make sure that you have the latest PHP version installed: PHP Installation for MacOS, Windows
-
Clone this repository
git clone [email protected]:rauwwww/programming_challenge.git
-
cd programming_challenge
-
Install all of the packages by running
composer install
-
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
-
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
-
Open your homestead.yaml file and change the sites map from
homestead.app
tosmartphone.app
-
Run
vagrant up
-
Run
chmod -R 777 storage; cp -p .env.example .env; php artisan key:generate
-
Run
vagrant ssh
cdprogramming-challenge
then Runphp artisan migrate
andphp artisan db:seed
to build the database with new data, user passwords123456
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
.
- DB connection
127.0.0.1 33060 homestead secret
-
If you get a message like
'Oops, something went wrong'
you need to go to/config/app.php
and settrue
theAPP_DEBUG.
After you've done this and you get the messageRuntimeException
orRuntimeError
try:chmod -R 777 storage; cp -p .env.example .env; php artisan key:generate
More documentation in here.
-
If you get the error
The UID used to create the VM was: xx
when you runvagrant 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
If you need more documentation about Laravel and PHP here are some good places where you can look at.