Sirclo PHP Technical Test
1. Install Git
Open your console and run this command
sudo apt-get install git
2. Install Composer
cd ~
curl -sS https://getcomposer.org/installer -o composer-setup.php
sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer
3. Clone this Repository
git clone https://github.com/el-aprico/sirclo.git && cd sirclo
4. Copy .env File
cp .env.example .env
5. Setting Connection Open file .env, change on
DB_DATABASE=<YOUR_DB_CONNECTION>
DB_USERNAME=<YOUR_USERNAME_CONNECTION>
DB_PASSWORD=<YOUR_PASSWORD_CONNECTION>
6. Install Composer Project
composer install
7. Run Migration & Database Seeds
php artisan migrate
php artisan db:seed
8. Run Laravel Server
php artisan serve
9. Test on your browser
Open your browser and type http://127.0.0.1:8000
If everything is working, you'll see a welcome page
10. Launch Weight Program
Click link PROGRAM
on welcome page or type http://127.0.0.1:8000/weights
on your browser, that will redirect to weight program.
If everything is working, you'll see a weight program page. Feel free to test
11. Edit Seed
Edit config file in database/seeds/DatabaseSeeder.php
$len
for how much data will created
$min = rand(45, 80);
set minimum weight, set on rand function
$max = $min - rand(-8, 8);
set max weight, set on rand function