Created CV Section #6

Merged
rodude123 merged 17 commits from cv into master 2021-08-31 18:53:13 +01:00
8 changed files with 1811 additions and 3 deletions
Showing only changes of commit edcc979319 - Show all commits

4
.gitignore vendored
View File

@ -72,4 +72,6 @@ fabric.properties
.idea/caches/build_file_checksums.ser
# Custom ignores
.env
.env
vendor/*
node_modules/*

13
composer.json Normal file
View File

@ -0,0 +1,13 @@
{
"require": {
"slim/slim-skeleton": "^4.3",
"ext-pdo": "*",
"slim/psr7": "^1.4",
"nyholm/psr7": "^1.4",
"nyholm/psr7-server": "^1.0",
"guzzlehttp/psr7": "^2.0",
"http-interop/http-factory-guzzle": "^1.2",
"laminas/laminas-diactoros": "^2.6",
"laminas/laminas-httphandlerrunner": "^2.0"
}
}

1733
composer.lock generated Normal file

File diff suppressed because it is too large Load Diff

23
dist/api/index.php vendored Normal file
View File

@ -0,0 +1,23 @@
<?php
////////////////// Index file //////////////
/// Creates base routes and runs ///
/// respective functions ///
////////////////////////////////////////////
use Psr\Http\Message\ResponseInterface as Response;
use Psr\Http\Message\ServerRequestInterface as Request;
use Slim\Factory\AppFactory;
require "routes.php";
require "./vendor/autoload.php";
// Start slim
$app = AppFactory::create();
// create middleware
$app->addRoutingMiddleware();
$errorMiddleware = $app->addErrorMiddleware(false, true, true);
$app->get("/getTimelineData", function (Request $request, Response $response)
{
});

View File

@ -42,11 +42,18 @@ gulp.task("minifyJS", () =>
.on("error", createErrorHandler("gulp.dest"));
});
gulp.task("watch files", () =>
gulp.task("movePHPFiles", () =>
{
return gulp.src("src/api/*.php")
.pipe(gulp.dest("dist/api"))
});
gulp.task("watchFiles", () =>
{
gulp.watch("src/*.html", gulp.task("minifyHTML"));
gulp.watch("src/css/*.css", gulp.task("minifyCSS"));
gulp.watch("src/js/*.js", gulp.task("minifyJS"));
gulp.watch("src/api/*.php", gulp.task("movePHPFiles"))
});
gulp.task("ftp", () =>
@ -78,4 +85,4 @@ gulp.task("browserSync", () =>
gulp.watch("dist").on("change", browserSync.reload)
});
gulp.task("default", gulp.series(gulp.parallel("watch files", "deploy")));
gulp.task("default", gulp.series(gulp.parallel("watchFiles", "deploy")));

23
src/api/index.php Normal file
View File

@ -0,0 +1,23 @@
<?php
////////////////// Index file //////////////
/// Creates base routes and runs ///
/// respective functions ///
////////////////////////////////////////////
use Psr\Http\Message\ResponseInterface as Response;
use Psr\Http\Message\ServerRequestInterface as Request;
use Slim\Factory\AppFactory;
require "routes.php";
require "./vendor/autoload.php";
// Start slim
$app = AppFactory::create();
// create middleware
$app->addRoutingMiddleware();
$errorMiddleware = $app->addErrorMiddleware(false, true, true);
$app->get("/timelineData", function (Request $request, Response $response)
{
});

7
src/api/timelineData.php Normal file
View File

@ -0,0 +1,7 @@
<?php
class TimelineData
{
}

BIN
src/imgs/hero before.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 368 KiB