Created CV Section #6
2
.gitignore
vendored
2
.gitignore
vendored
@ -73,3 +73,5 @@ fabric.properties
|
||||
|
||||
# Custom ignores
|
||||
.env
|
||||
vendor/*
|
||||
node_modules/*
|
||||
|
13
composer.json
Normal file
13
composer.json
Normal 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
1733
composer.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
23
dist/api/index.php
vendored
Normal file
23
dist/api/index.php
vendored
Normal 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)
|
||||
{
|
||||
|
||||
});
|
11
gulpfile.js
11
gulpfile.js
@ -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
23
src/api/index.php
Normal 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
7
src/api/timelineData.php
Normal file
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
|
||||
class TimelineData
|
||||
{
|
||||
|
||||
}
|
BIN
src/imgs/hero before.jpg
Normal file
BIN
src/imgs/hero before.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 368 KiB |
Loading…
Reference in New Issue
Block a user