Setup initial backend for the blog posts and added in the link to the pages
Signed-off-by: rodude123 <rodude123@gmail.com>
This commit is contained in:
parent
23f7ff4dc5
commit
3ccc7de5b4
BIN
blog post.png
BIN
blog post.png
Binary file not shown.
Before Width: | Height: | Size: 474 KiB After Width: | Height: | Size: 685 KiB |
98
dist/api/blogData.php
vendored
Normal file
98
dist/api/blogData.php
vendored
Normal file
@ -0,0 +1,98 @@
|
|||||||
|
<?php
|
||||||
|
namespace api;
|
||||||
|
use PDO;
|
||||||
|
use Psr\Http\Message\UploadedFileInterface;
|
||||||
|
|
||||||
|
require_once "./config.php";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Blog Data Class
|
||||||
|
* Define all functions which either get, update, create or delete posts
|
||||||
|
*/
|
||||||
|
class blogData
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Get all blog posts
|
||||||
|
* @return array - Array of all blog posts or error message
|
||||||
|
*/
|
||||||
|
function getBlogPosts(): array
|
||||||
|
{
|
||||||
|
$conn = dbConn();
|
||||||
|
$stmt = $conn->prepare("SELECT ID, title, dateCreated, dateModified, body, tags FROM blog ORDER BY dateCreated DESC;");
|
||||||
|
$stmt->execute();
|
||||||
|
|
||||||
|
// set the resulting array to associative
|
||||||
|
$result = $stmt->fetchAll(PDO::FETCH_ASSOC);
|
||||||
|
|
||||||
|
if ($result)
|
||||||
|
{
|
||||||
|
return $result;
|
||||||
|
}
|
||||||
|
|
||||||
|
return array("errorMessage" => "Error, blog data not found");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get a blog post with the given ID
|
||||||
|
* @param string $ID - ID of the blog post to get
|
||||||
|
* @return array - Array of all blog posts or error message
|
||||||
|
*/
|
||||||
|
function getBlogPost(string $ID): array
|
||||||
|
{
|
||||||
|
$conn = dbConn();
|
||||||
|
$stmt = $conn->prepare("SELECT ID, title, dateCreated, dateModified, featured, headerImg, body, tags FROM blog WHERE ID = :ID;");
|
||||||
|
$stmt->bindParam(":ID", $ID);
|
||||||
|
$stmt->execute();
|
||||||
|
|
||||||
|
// set the resulting array to associative
|
||||||
|
$result = $stmt->fetch(PDO::FETCH_ASSOC);
|
||||||
|
|
||||||
|
if ($result)
|
||||||
|
{
|
||||||
|
return $result;
|
||||||
|
}
|
||||||
|
|
||||||
|
return array("errorMessage" => "Error, blog post could not found");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the latest blog post
|
||||||
|
* @return array - Array of the latest blog post or error message
|
||||||
|
*/
|
||||||
|
function getLatestBlogPost(): array
|
||||||
|
{
|
||||||
|
$conn = dbConn();
|
||||||
|
$stmt = $conn->prepare("SELECT ID, title, dateCreated, dateModified, featured, headerImg, body, tags FROM blog ORDER BY dateCreated DESC LIMIT 1;");
|
||||||
|
$stmt->execute();
|
||||||
|
|
||||||
|
// set the resulting array to associative
|
||||||
|
$result = $stmt->fetch(PDO::FETCH_ASSOC);
|
||||||
|
|
||||||
|
if ($result)
|
||||||
|
{
|
||||||
|
return $result;
|
||||||
|
}
|
||||||
|
|
||||||
|
return array("errorMessage" => "Error, blog post could not found");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get featured blog post
|
||||||
|
* @return array - Array of the featured blog post or error message
|
||||||
|
*/
|
||||||
|
function getFeaturedBlogPost(): array
|
||||||
|
{
|
||||||
|
$conn = dbConn();
|
||||||
|
$stmt = $conn->prepare("SELECT ID, title, dateCreated, dateModified, featured, headerImg, body, tags FROM blog WHERE featured = 1;");
|
||||||
|
$stmt->execute();
|
||||||
|
|
||||||
|
$result = $stmt->fetch(PDO::FETCH_ASSOC);
|
||||||
|
|
||||||
|
if ($result)
|
||||||
|
{
|
||||||
|
return $result;
|
||||||
|
}
|
||||||
|
|
||||||
|
return array("errorMessage" => "Error, blog post could not found");
|
||||||
|
}
|
||||||
|
}
|
5
dist/api/index.php
vendored
5
dist/api/index.php
vendored
@ -1,4 +1,4 @@
|
|||||||
<?php /** @noinspection PhpIncludeInspection */
|
<?php
|
||||||
|
|
||||||
////////////////// Index file //////////////
|
////////////////// Index file //////////////
|
||||||
/// Creates base routes and runs ///
|
/// Creates base routes and runs ///
|
||||||
@ -10,7 +10,9 @@ include "middleware.php";
|
|||||||
include "timelineData.php";
|
include "timelineData.php";
|
||||||
include "projectData.php";
|
include "projectData.php";
|
||||||
include "user.php";
|
include "user.php";
|
||||||
|
include "blogData.php";
|
||||||
|
|
||||||
|
use api\blogData;
|
||||||
use api\middleware;
|
use api\middleware;
|
||||||
use api\projectData;
|
use api\projectData;
|
||||||
use api\timelineData;
|
use api\timelineData;
|
||||||
@ -33,6 +35,7 @@ new middleware($app);
|
|||||||
|
|
||||||
$timelineData = new timelineData();
|
$timelineData = new timelineData();
|
||||||
$projectData = new projectData();
|
$projectData = new projectData();
|
||||||
|
$blogData = new blogData();
|
||||||
$user = new user();
|
$user = new user();
|
||||||
|
|
||||||
$app->get("/timelineData/{timeline}", function (Request $request, Response $response, array $args)
|
$app->get("/timelineData/{timeline}", function (Request $request, Response $response, array $args)
|
||||||
|
2
dist/blog/index.html
vendored
2
dist/blog/index.html
vendored
@ -1 +1 @@
|
|||||||
<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><title>Test page</title></head><body><a href="#" onclick="return goToURL('post/full-stack-dev-2023-starting-guide');">full-stack-dev-2023-starting-guide</a><p id="url"></p><script src="/blog/index.js"></script></body></html>
|
<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><title>Blog</title></head><body>this is a test<script src="/blog/index.js"></script></body></html>
|
2
dist/css/main.css
vendored
2
dist/css/main.css
vendored
File diff suppressed because one or more lines are too long
2
dist/editor/css/main.css
vendored
2
dist/editor/css/main.css
vendored
File diff suppressed because one or more lines are too long
2
dist/index.html
vendored
2
dist/index.html
vendored
File diff suppressed because one or more lines are too long
2
dist/projects.html
vendored
2
dist/projects.html
vendored
@ -1 +1 @@
|
|||||||
<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1"><meta http-equiv="X-UA-Compatible" content="ie=edge"><title>Rohit Pai - All Projects</title><link rel="stylesheet" href="css/main.css"><script src="https://kit.fontawesome.com/ed3c25598e.js" crossorigin="anonymous"></script></head><body><nav><input type="checkbox" id="nav-check"> <a href="/"><h1>rohit pai</h1></a><div class="nav-btn"><label for="nav-check"><span></span> <span></span> <span></span></label></div><ul><li><a href="/#about" class="textShadow"><span><</span>about<span>></span></a></li><li><a href="/#curriculumVitae" class="textShadow"><span><</span>cv<span>></span></a></li><li><a href="#allProjects" class="textShadow active"><span><</span>projects<span>></span></a></li><li><a href="/#contact" class="textShadow"><span><</span>contact<span>></span></a></li><li><a href="#" class="textShadow"><span><</span>blog<span>></span></a></li></ul></nav><header><div><h1>full stack developer</h1><a href="/#sayHello" class="btn btnPrimary boxShadowIn boxShadowOut">Contact Me</a> <a href="#allProjects"><i class="fa-solid fa-chevron-down"></i></a></div></header><main><section id="allProjects"><div class="mainProj" id="mainProj"></div><div class="otherProj" id="otherProj"></div></section></main><footer class="flexRow"><div class="spacer"></div><p>© <span id="year"></span> Rohit Pai all rights reserved</p><div class="button"><button id="goBackToTop"><i class="fa-solid fa-chevron-up"></i></button></div></footer><script src="js/typewriter.js"></script><script src="js/projects.js"></script></body></html>
|
<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1"><meta http-equiv="X-UA-Compatible" content="ie=edge"><title>Rohit Pai - All Projects</title><link rel="stylesheet" href="css/main.css"><script src="https://kit.fontawesome.com/ed3c25598e.js" crossorigin="anonymous"></script></head><body><nav><input type="checkbox" id="nav-check"> <a href="/"><h1>rohit pai</h1></a><div class="nav-btn"><label for="nav-check"><span></span> <span></span> <span></span></label></div><ul><li><a href="/#about" class="textShadow"><span><</span>about<span>></span></a></li><li><a href="/#curriculumVitae" class="textShadow"><span><</span>cv<span>></span></a></li><li><a href="#allProjects" class="textShadow active"><span><</span>projects<span>></span></a></li><li><a href="/#contact" class="textShadow"><span><</span>contact<span>></span></a></li><li><a href="/blog" class="textShadow"><span><</span>blog<span>></span></a></li></ul></nav><header><div><h1>full stack developer</h1><a href="/#sayHello" class="btn btnPrimary boxShadowIn boxShadowOut">Contact Me</a> <a href="#allProjects"><i class="fa-solid fa-chevron-down"></i></a></div></header><main><section id="allProjects"><div class="mainProj" id="mainProj"></div><div class="otherProj" id="otherProj"></div></section></main><footer class="flexRow"><div class="spacer"></div><p>© <span id="year"></span> Rohit Pai all rights reserved</p><div class="button"><button id="goBackToTop"><i class="fa-solid fa-chevron-up"></i></button></div></footer><script src="js/typewriter.js"></script><script src="js/projects.js"></script></body></html>
|
98
src/api/blogData.php
Normal file
98
src/api/blogData.php
Normal file
@ -0,0 +1,98 @@
|
|||||||
|
<?php
|
||||||
|
namespace api;
|
||||||
|
use PDO;
|
||||||
|
use Psr\Http\Message\UploadedFileInterface;
|
||||||
|
|
||||||
|
require_once "./config.php";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Blog Data Class
|
||||||
|
* Define all functions which either get, update, create or delete posts
|
||||||
|
*/
|
||||||
|
class blogData
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Get all blog posts
|
||||||
|
* @return array - Array of all blog posts or error message
|
||||||
|
*/
|
||||||
|
function getBlogPosts(): array
|
||||||
|
{
|
||||||
|
$conn = dbConn();
|
||||||
|
$stmt = $conn->prepare("SELECT ID, title, dateCreated, dateModified, body, tags FROM blog ORDER BY dateCreated DESC;");
|
||||||
|
$stmt->execute();
|
||||||
|
|
||||||
|
// set the resulting array to associative
|
||||||
|
$result = $stmt->fetchAll(PDO::FETCH_ASSOC);
|
||||||
|
|
||||||
|
if ($result)
|
||||||
|
{
|
||||||
|
return $result;
|
||||||
|
}
|
||||||
|
|
||||||
|
return array("errorMessage" => "Error, blog data not found");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get a blog post with the given ID
|
||||||
|
* @param string $ID - ID of the blog post to get
|
||||||
|
* @return array - Array of all blog posts or error message
|
||||||
|
*/
|
||||||
|
function getBlogPost(string $ID): array
|
||||||
|
{
|
||||||
|
$conn = dbConn();
|
||||||
|
$stmt = $conn->prepare("SELECT ID, title, dateCreated, dateModified, featured, headerImg, body, tags FROM blog WHERE ID = :ID;");
|
||||||
|
$stmt->bindParam(":ID", $ID);
|
||||||
|
$stmt->execute();
|
||||||
|
|
||||||
|
// set the resulting array to associative
|
||||||
|
$result = $stmt->fetch(PDO::FETCH_ASSOC);
|
||||||
|
|
||||||
|
if ($result)
|
||||||
|
{
|
||||||
|
return $result;
|
||||||
|
}
|
||||||
|
|
||||||
|
return array("errorMessage" => "Error, blog post could not found");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the latest blog post
|
||||||
|
* @return array - Array of the latest blog post or error message
|
||||||
|
*/
|
||||||
|
function getLatestBlogPost(): array
|
||||||
|
{
|
||||||
|
$conn = dbConn();
|
||||||
|
$stmt = $conn->prepare("SELECT ID, title, dateCreated, dateModified, featured, headerImg, body, tags FROM blog ORDER BY dateCreated DESC LIMIT 1;");
|
||||||
|
$stmt->execute();
|
||||||
|
|
||||||
|
// set the resulting array to associative
|
||||||
|
$result = $stmt->fetch(PDO::FETCH_ASSOC);
|
||||||
|
|
||||||
|
if ($result)
|
||||||
|
{
|
||||||
|
return $result;
|
||||||
|
}
|
||||||
|
|
||||||
|
return array("errorMessage" => "Error, blog post could not found");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get featured blog post
|
||||||
|
* @return array - Array of the featured blog post or error message
|
||||||
|
*/
|
||||||
|
function getFeaturedBlogPost(): array
|
||||||
|
{
|
||||||
|
$conn = dbConn();
|
||||||
|
$stmt = $conn->prepare("SELECT ID, title, dateCreated, dateModified, featured, headerImg, body, tags FROM blog WHERE featured = 1;");
|
||||||
|
$stmt->execute();
|
||||||
|
|
||||||
|
$result = $stmt->fetch(PDO::FETCH_ASSOC);
|
||||||
|
|
||||||
|
if ($result)
|
||||||
|
{
|
||||||
|
return $result;
|
||||||
|
}
|
||||||
|
|
||||||
|
return array("errorMessage" => "Error, blog post could not found");
|
||||||
|
}
|
||||||
|
}
|
@ -1,4 +1,4 @@
|
|||||||
<?php /** @noinspection PhpIncludeInspection */
|
<?php
|
||||||
|
|
||||||
////////////////// Index file //////////////
|
////////////////// Index file //////////////
|
||||||
/// Creates base routes and runs ///
|
/// Creates base routes and runs ///
|
||||||
@ -10,7 +10,9 @@ include "middleware.php";
|
|||||||
include "timelineData.php";
|
include "timelineData.php";
|
||||||
include "projectData.php";
|
include "projectData.php";
|
||||||
include "user.php";
|
include "user.php";
|
||||||
|
include "blogData.php";
|
||||||
|
|
||||||
|
use api\blogData;
|
||||||
use api\middleware;
|
use api\middleware;
|
||||||
use api\projectData;
|
use api\projectData;
|
||||||
use api\timelineData;
|
use api\timelineData;
|
||||||
@ -33,6 +35,7 @@ new middleware($app);
|
|||||||
|
|
||||||
$timelineData = new timelineData();
|
$timelineData = new timelineData();
|
||||||
$projectData = new projectData();
|
$projectData = new projectData();
|
||||||
|
$blogData = new blogData();
|
||||||
$user = new user();
|
$user = new user();
|
||||||
|
|
||||||
$app->get("/timelineData/{timeline}", function (Request $request, Response $response, array $args)
|
$app->get("/timelineData/{timeline}", function (Request $request, Response $response, array $args)
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<title>Blog</title>
|
<title>Blog</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
this is a test
|
||||||
<script src="/blog/index.js"></script>
|
<script src="/blog/index.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
144
src/cms.sql
144
src/cms.sql
@ -1,145 +1,135 @@
|
|||||||
-- MariaDB dump 10.19 Distrib 10.9.4-MariaDB, for Linux (x86_64)
|
-- phpMyAdmin SQL Dump
|
||||||
|
-- version 5.1.1
|
||||||
|
-- https://www.phpmyadmin.net/
|
||||||
--
|
--
|
||||||
-- Host: sql276.main-hosting.eu Database: u987021215_cms
|
-- Host: 127.0.0.1:3306
|
||||||
-- ------------------------------------------------------
|
-- Generation Time: Jun 05, 2023 at 12:09 PM
|
||||||
-- Server version 10.5.12-MariaDB-cll-lve
|
-- Server version: 10.6.12-MariaDB-cll-lve
|
||||||
|
-- PHP Version: 7.2.34
|
||||||
|
|
||||||
|
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
||||||
|
START TRANSACTION;
|
||||||
|
SET time_zone = "+00:00";
|
||||||
|
|
||||||
|
|
||||||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
||||||
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
||||||
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
||||||
/*!40101 SET NAMES utf8mb4 */;
|
/*!40101 SET NAMES utf8mb4 */;
|
||||||
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
|
|
||||||
/*!40103 SET TIME_ZONE='+00:00' */;
|
--
|
||||||
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
|
-- Database: `u987021215_cms`
|
||||||
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
|
--
|
||||||
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
|
CREATE DATABASE IF NOT EXISTS `u987021215_cms` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||||
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
|
USE `u987021215_cms`;
|
||||||
|
|
||||||
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `edu`
|
-- Table structure for table `edu`
|
||||||
--
|
--
|
||||||
|
|
||||||
DROP TABLE IF EXISTS `edu`;
|
DROP TABLE IF EXISTS `edu`;
|
||||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
CREATE TABLE IF NOT EXISTS `edu` (
|
||||||
/*!40101 SET character_set_client = utf8 */;
|
|
||||||
CREATE TABLE `edu` (
|
|
||||||
`ID` int(11) NOT NULL AUTO_INCREMENT,
|
`ID` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
`startPeriod` date NOT NULL,
|
`startPeriod` date NOT NULL,
|
||||||
`endPeriod` date NOT NULL,
|
`endPeriod` date NOT NULL,
|
||||||
`grade` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
|
`grade` varchar(20) NOT NULL,
|
||||||
`course` varchar(150) COLLATE utf8mb4_unicode_ci NOT NULL,
|
`course` varchar(150) NOT NULL,
|
||||||
PRIMARY KEY (`ID`)
|
PRIMARY KEY (`ID`)
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
) ENGINE=InnoDB AUTO_INCREMENT=35 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Dumping data for table `edu`
|
-- Dumping data for table `edu`
|
||||||
--
|
--
|
||||||
|
|
||||||
LOCK TABLES `edu` WRITE;
|
INSERT INTO `edu` (`ID`, `startPeriod`, `endPeriod`, `grade`, `course`) VALUES
|
||||||
/*!40000 ALTER TABLE `edu` DISABLE KEYS */;
|
(1, '2016-09-01', '2018-07-01', 'D*D*D*', 'Chelmsford College - BTEC Level 3 in IT'),
|
||||||
INSERT INTO `edu` (`ID`, `startPeriod`, `endPeriod`, `grade`, `course`) VALUES (1,'2016-09-01','2018-07-01','D*D*D*','Chelmsford College - BTEC Level 3 in IT'),
|
(2, '2018-09-10', '2022-07-20', '2(i)', 'University of Sussex - Computer Science and AI with a placement year'),
|
||||||
(2,'2018-09-10','2022-07-20','2(i)','University of Sussex - Computer Science and AI with a placement year'),
|
(11, '2022-09-26', '2023-08-25', 'Not completed yet', 'University of Nottingham - Computer Sciene (Artificial Intelligence)');
|
||||||
(11,'2022-09-26','2024-08-25','Not completed yet','University of Nottingham - Computer Sciene (Artificial Intelligence)');
|
|
||||||
/*!40000 ALTER TABLE `edu` ENABLE KEYS */;
|
-- --------------------------------------------------------
|
||||||
UNLOCK TABLES;
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `projects`
|
-- Table structure for table `projects`
|
||||||
--
|
--
|
||||||
|
|
||||||
DROP TABLE IF EXISTS `projects`;
|
DROP TABLE IF EXISTS `projects`;
|
||||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
CREATE TABLE IF NOT EXISTS `projects` (
|
||||||
/*!40101 SET character_set_client = utf8 */;
|
|
||||||
CREATE TABLE `projects` (
|
|
||||||
`ID` int(11) NOT NULL AUTO_INCREMENT,
|
`ID` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
`title` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
|
`title` varchar(100) NOT NULL,
|
||||||
`date` date NOT NULL,
|
|
||||||
`isMainProject` tinyint(1) NOT NULL,
|
`isMainProject` tinyint(1) NOT NULL,
|
||||||
`information` text COLLATE utf8mb4_unicode_ci NOT NULL,
|
`information` text NOT NULL,
|
||||||
`imgLocation` varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL,
|
`imgLocation` varchar(200) NOT NULL DEFAULT '',
|
||||||
`projectLink` text COLLATE utf8mb4_unicode_ci NOT NULL,
|
`projectLink` text NOT NULL DEFAULT '',
|
||||||
`githubLink` text COLLATE utf8mb4_unicode_ci NOT NULL,
|
`gitLink` text NOT NULL,
|
||||||
PRIMARY KEY (`ID`)
|
PRIMARY KEY (`ID`)
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
) ENGINE=InnoDB AUTO_INCREMENT=73 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Dumping data for table `projects`
|
-- Dumping data for table `projects`
|
||||||
--
|
--
|
||||||
|
|
||||||
LOCK TABLES `projects` WRITE;
|
INSERT INTO `projects` (`ID`, `title`, `isMainProject`, `information`, `imgLocation`, `projectLink`, `gitLink`) VALUES
|
||||||
/*!40000 ALTER TABLE `projects` DISABLE KEYS */;
|
(57, 'Money Tabs', 0, 'This is an app to keep a track of who owes whom and how much they owe per transaction. Soon group tab functionality will be added to keep a track of a group goal such as payment towards a holiday etc.', '', 'N/A', 'https://github.com/rodude123/MoneyTabs'),
|
||||||
INSERT INTO `projects` (`ID`, `title`, `date`, `isMainProject`, `information`, `imgLocation`, `projectLink`, `githubLink`) VALUES (1,'Money Tabs','2021-09-28',1,'This is a web app that should allow users to add friends as tabs so that they can easily manage, who owes them and who they owe.','N/A','N/A','https://github.com/rodude123/money-tabs'),
|
(59, 'GyroTennis', 1, 'Do you like the Wii? Would you rather launch your iPhone across the room than a controller? Then is this the game for you! Now you can play motion-control tennis using your phone as the controller! (P.S. Any damage done to your phone is your fault)', '../imgs/projects/gyroTennis.png', 'https://devpost.com/software/gyrotennis', 'https://github.com/rodude123/HackNotts23'),
|
||||||
(2,'Money Tabs','2021-09-28',0,'This is a web app that should allow users to add friends as tabs so that they can easily manage, who owes them and who they owe.','N/A','N/A','https://github.com/rodude123/money-tabs');
|
(60, 'This Portfolio', 0, 'Well, it took a while to get it completed but got there in the end. This website is built using HTML, CSS, JS and the Slim framework with PHP, which means no frontend frameworks. Personally, I think it looks great, but I\'ll leave that to you.', '../imgs/projects/portfolio.png', 'https://rohitpai.co.uk', 'https://gitea.rohitpai.co.uk/rodude123/my-portfolio'),
|
||||||
/*!40000 ALTER TABLE `projects` ENABLE KEYS */;
|
(69, 'Linux Wallpaper Changer', 0, 'A very simple wallpaper changer script for a Linux-based distribution running KDE and XFCE at the moment. It allows you to change the wallpaper by running the shell script and then allows you to save it to your pictures directory so that you can reuse it later at random. You can even add it to your crontab or create a system timer so that you can a change every \"X\" e.g. every 30 minutes', '../imgs/projects/Landscapes-10.png', 'N/A', 'https://github.com/rodude123/wallpaper-changer'),
|
||||||
UNLOCK TABLES;
|
(70, 'Fixing Windows', 0, 'Made for the 2020 Global Game Jam, it\'s a game where you have to fix your windows computer as well as fight off the zombie infestation. Made using Gadot and GD script', '../imgs/projects/fixing windows.png', 'N/A', 'https://github.com/smilo7/fixing_windows_GGJ'),
|
||||||
|
(71, 'Magic the Gathering Card Image Downloader', 0, 'Automates the download process of card images for magic the gathering so that it can be proxied into a deck', '', 'N/A', 'https://gitea.rohitpai.co.uk/rodude123/magic-download-images'),
|
||||||
|
(72, 'Fiinal Year Project', 0, 'This was my final year project for my undergrad degree. I created a FPS AI system for Unity where you could add in AI to your own FPS game. ', '../imgs/projects/developerTesting1.png', 'N/A', 'https://github.com/rodude123/configurable-FPS-AI');
|
||||||
|
|
||||||
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `users`
|
-- Table structure for table `users`
|
||||||
--
|
--
|
||||||
|
|
||||||
DROP TABLE IF EXISTS `users`;
|
DROP TABLE IF EXISTS `users`;
|
||||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
CREATE TABLE IF NOT EXISTS `users` (
|
||||||
/*!40101 SET character_set_client = utf8 */;
|
|
||||||
CREATE TABLE `users` (
|
|
||||||
`ID` int(11) NOT NULL AUTO_INCREMENT,
|
`ID` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
`username` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
`username` varchar(50) DEFAULT NULL,
|
||||||
`email` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
`email` varchar(200) DEFAULT NULL,
|
||||||
`password` varchar(500) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
`password` varchar(500) DEFAULT NULL,
|
||||||
`mfaSecret` varchar(500) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
`mfaSecret` varchar(500) DEFAULT NULL,
|
||||||
`resetCode` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
`resetCode` varchar(200) DEFAULT NULL,
|
||||||
PRIMARY KEY (`ID`)
|
PRIMARY KEY (`ID`)
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Dumping data for table `users`
|
-- Dumping data for table `users`
|
||||||
--
|
--
|
||||||
|
|
||||||
LOCK TABLES `users` WRITE;
|
INSERT INTO `users` (`ID`, `username`, `email`, `password`, `mfaSecret`, `resetCode`) VALUES
|
||||||
/*!40000 ALTER TABLE `users` DISABLE KEYS */;
|
(1, 'rodude123', 'rodude123@gmail.com', '$2y$10$oRtVHNLEnMtwEzgGAScALeISUP28HVk.GvwH8naFZZrQKu0OF9xu2', '0', '0');
|
||||||
INSERT INTO `users` (`ID`, `username`, `email`, `password`, `mfaSecret`, `resetCode`) VALUES (1,'rodude123','rodude123@gmail.com','$2y$10$oRtVHNLEnMtwEzgGAScALeISUP28HVk.GvwH8naFZZrQKu0OF9xu2','0','0');
|
|
||||||
/*!40000 ALTER TABLE `users` ENABLE KEYS */;
|
-- --------------------------------------------------------
|
||||||
UNLOCK TABLES;
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `work`
|
-- Table structure for table `work`
|
||||||
--
|
--
|
||||||
|
|
||||||
DROP TABLE IF EXISTS `work`;
|
DROP TABLE IF EXISTS `work`;
|
||||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
CREATE TABLE IF NOT EXISTS `work` (
|
||||||
/*!40101 SET character_set_client = utf8 */;
|
|
||||||
CREATE TABLE `work` (
|
|
||||||
`ID` int(11) NOT NULL AUTO_INCREMENT,
|
`ID` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
`startPeriod` date NOT NULL,
|
`startPeriod` date NOT NULL,
|
||||||
`endPeriod` date DEFAULT NULL,
|
`endPeriod` date DEFAULT NULL,
|
||||||
`companyName` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL,
|
`companyName` varchar(30) NOT NULL,
|
||||||
`area` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL,
|
`area` varchar(30) NOT NULL,
|
||||||
`title` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
|
`title` varchar(50) NOT NULL,
|
||||||
PRIMARY KEY (`ID`)
|
PRIMARY KEY (`ID`)
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Dumping data for table `work`
|
-- Dumping data for table `work`
|
||||||
--
|
--
|
||||||
|
|
||||||
LOCK TABLES `work` WRITE;
|
INSERT INTO `work` (`ID`, `startPeriod`, `endPeriod`, `companyName`, `area`, `title`) VALUES
|
||||||
/*!40000 ALTER TABLE `work` DISABLE KEYS */;
|
(1, '2016-09-01', '2017-08-31', 'Co-op', 'Billericay', 'Retail Assistant'),
|
||||||
INSERT INTO `work` (`ID`, `startPeriod`, `endPeriod`, `companyName`, `area`, `title`) VALUES (1,'2016-09-01','2017-08-31','Co-op','Billericay','Retail Assistant'),
|
(2, '2019-07-01', '2019-08-31', 'Cerebriu', 'Copenhagen', 'Student Intern'),
|
||||||
(2,'2019-07-01','2019-08-31','Cerebriu','Copenhagen','Student Intern'),
|
(3, '2020-09-01', '2021-07-30', 'Cerebriu', 'Copenhagen', 'Intern Consultant');
|
||||||
(3,'2020-09-01','2021-07-30','Cerebriu','Copenhagen','Intern Consultant');
|
COMMIT;
|
||||||
/*!40000 ALTER TABLE `work` ENABLE KEYS */;
|
|
||||||
UNLOCK TABLES;
|
|
||||||
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
|
|
||||||
|
|
||||||
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
|
|
||||||
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
|
|
||||||
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
|
|
||||||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||||||
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
||||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||||
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
|
||||||
|
|
||||||
-- Dump completed on 2022-12-24 18:37:29
|
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
<li><a href="#curriculumVitae" class="textShadow"><span><</span>cv<span>></span></a></li>
|
<li><a href="#curriculumVitae" class="textShadow"><span><</span>cv<span>></span></a></li>
|
||||||
<li><a href="#projects" class="textShadow"><span><</span>projects<span>></span></a></li>
|
<li><a href="#projects" class="textShadow"><span><</span>projects<span>></span></a></li>
|
||||||
<li><a href="#contact" class="textShadow"><span><</span>contact<span>></span></a></li>
|
<li><a href="#contact" class="textShadow"><span><</span>contact<span>></span></a></li>
|
||||||
<li><a href="#" class="textShadow"><span><</span>blog<span>></span></a></li>
|
<li><a href="/blog" class="textShadow"><span><</span>blog<span>></span></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
<header>
|
<header>
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
<li><a href="/#curriculumVitae" class="textShadow"><span><</span>cv<span>></span></a></li>
|
<li><a href="/#curriculumVitae" class="textShadow"><span><</span>cv<span>></span></a></li>
|
||||||
<li><a href="#allProjects" class="textShadow active"><span><</span>projects<span>></span></a></li>
|
<li><a href="#allProjects" class="textShadow active"><span><</span>projects<span>></span></a></li>
|
||||||
<li><a href="/#contact" class="textShadow"><span><</span>contact<span>></span></a></li>
|
<li><a href="/#contact" class="textShadow"><span><</span>contact<span>></span></a></li>
|
||||||
<li><a href="#" class="textShadow"><span><</span>blog<span>></span></a></li>
|
<li><a href="/blog" class="textShadow"><span><</span>blog<span>></span></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user