Started backend for cv timeline data

This commit is contained in:
2021-08-22 10:44:49 +01:00
parent 60927cf6b6
commit edcc979319
8 changed files with 1811 additions and 3 deletions
+3 -1
View File
@@ -72,4 +72,6 @@ fabric.properties
.idea/caches/build_file_checksums.ser
# Custom ignores
.env
.env
vendor/*
node_modules/*
+13
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"
}
}
Generated
+1733
View File
File diff suppressed because it is too large Load Diff
+23
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)
{
});
+9 -2
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
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
View File
@@ -0,0 +1,7 @@
<?php
class TimelineData
{
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 368 KiB