Skip to content

Demo #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 31 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
df92ebb
Cats
specialyellow Sep 11, 2019
e2db0cc
Database script
specialyellow Sep 11, 2019
407cda0
Added seeder
specialyellow Sep 11, 2019
17d6a4a
Added tests to gitpod.yml
specialyellow Sep 11, 2019
7cba419
Changed database name
specialyellow Sep 11, 2019
05174f5
Changed title
specialyellow Sep 11, 2019
7c9086a
changed title
dpalaciosv Sep 11, 2019
c21509e
Changed to lions
specialyellow Sep 11, 2019
45e2649
Changed to lions
specialyellow Sep 11, 2019
ddd9d0f
Merge pull request #1 from specialyellow/test-dp
specialyellow Sep 11, 2019
149c51b
Redid header
specialyellow Sep 11, 2019
6265fdd
Changes to css
specialyellow Sep 12, 2019
819deeb
Resequenced install commands
specialyellow Sep 12, 2019
02a921f
Commands
specialyellow Sep 12, 2019
cdfd211
Changed sequence
specialyellow Sep 12, 2019
4b5b04f
Tried to fix script
specialyellow Sep 12, 2019
9d88b68
Changed composer
specialyellow Sep 12, 2019
f654984
More changes
specialyellow Sep 12, 2019
a0f249a
Changed sequence
specialyellow Sep 12, 2019
7cdc3f4
Again more script changes
specialyellow Sep 12, 2019
341e866
Resquencing again
specialyellow Sep 12, 2019
4c49bf7
More changes
specialyellow Sep 12, 2019
b79a289
Trying new things
specialyellow Sep 12, 2019
5ab9db4
More
specialyellow Sep 12, 2019
847913d
fjdhfjksd
specialyellow Sep 12, 2019
d9d0ae5
Added lock
specialyellow Sep 12, 2019
4cf19f1
Sleep before tests
specialyellow Sep 12, 2019
7fa1eb1
Tweaks
specialyellow Sep 12, 2019
cc0e3df
Moved tests
specialyellow Sep 12, 2019
d9a5da1
Some more changes
specialyellow Sep 12, 2019
95c2073
Changed Title
specialyellow Sep 12, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,22 @@ ports:
- port: 3306
onOpen: ignore
tasks:
- init: composer install
command: echo "Hallo"
- init: touch /tmp/.npm-lock &&
composer install &&
rm /tmp/.npm-lock
command: echo "Dependancies Installed"
- name: MySQL
command: >
mysqld
- name: Apache
command: >
apachectl start;
multitail /var/log/apache2/error.log -I /var/log/apache2/access.log
multitail /var/log/apache2/error.log -I /var/log/apache2/access.log
- name: Migrate
init: sleep 1 && while [ -f /tmp/.npm-lock ]; do sleep 1; done
command: >
mysql -e 'create database cats';
mysql -e 'use cats';
php artisan migrate &&
php artisan db:seed &&
vendor/bin/phpunit
6 changes: 6 additions & 0 deletions .theia/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
"version": "0.2.0",
"configurations": []
}
90 changes: 90 additions & 0 deletions app/Http/Controllers/HomeController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;
use App\Post;
use Illuminate\Support\Facades\DB;

class HomeController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
$posts = Post::orderBy(DB::raw('RAND()'))->take(3)->get();
return view('home', compact('posts'));
}

/**
* Show the form for creating a new resource.
*
* @return \Illuminate\Http\Response
*/
public function create()
{
//
}

/**
* Store a newly created resource in storage.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function store(Request $request)
{
//
}

/**
* Display the specified resource.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function show($id)
{
//
}

/**
* Show the form for editing the specified resource.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function edit($id)
{
//
}

/**
* Update the specified resource in storage.
*
* @param \Illuminate\Http\Request $request
* @param int $id
* @return \Illuminate\Http\Response
*/
public function update(Request $request, $id)
{
//
}

/**
* Remove the specified resource from storage.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function destroy($id)
{
//
}
}
7 changes: 4 additions & 3 deletions app/Http/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
|
*/

Route::get('/', function () {
return view('welcome');
});
Route::get('/', 'HomeController@index');
// Route::get('/', function () {
// return view('welcome');
// });
10 changes: 10 additions & 0 deletions app/Post.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Post extends Model
{
//
}
Loading