Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tbreuss/my-website
My personal website built with Mithril.js and FlightPHP
https://github.com/tbreuss/my-website
flightphp mithriljs single-page-app spa
Last synced: about 2 months ago
JSON representation
My personal website built with Mithril.js and FlightPHP
- Host: GitHub
- URL: https://github.com/tbreuss/my-website
- Owner: tbreuss
- Created: 2018-09-01T06:18:56.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-07-23T07:42:24.000Z (over 2 years ago)
- Last Synced: 2023-03-04T04:34:23.940Z (almost 2 years ago)
- Topics: flightphp, mithriljs, single-page-app, spa
- Language: PHP
- Homepage: https://www.tebe.ch
- Size: 819 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# My Website
This is the code for my personal website which is built with Mithril.js and FlightPHP.
-
-
-The design is heavily inspired by:
-
## Install
git clone https://github.com/tbreuss/my-website.git
cd my-website
npm install
composer install## Add Database
Create a MySQL database with the following schema.
~~~sql
CREATE TABLE `article` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`format` enum('html','markdown') DEFAULT NULL,
`title` varchar(100) DEFAULT NULL,
`slug` varchar(50) DEFAULT NULL,
`abstract` tinytext,
`content` text,
`reading_time` int(11) DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;CREATE TABLE `photo` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`type` tinyint(3) unsigned NOT NULL DEFAULT '0',
`name` varchar(500) NOT NULL DEFAULT '',
`description` varchar(500) DEFAULT NULL,
`photodate` date DEFAULT NULL,
`abstract` varchar(500) NOT NULL DEFAULT '',
`extension` varchar(10) DEFAULT NULL,
`panorama` tinyint(1) unsigned NOT NULL DEFAULT '0',
`loop` tinyint(1) unsigned NOT NULL DEFAULT '0',
`counter` int(11) unsigned NOT NULL DEFAULT '0',
`opened` timestamp NULL DEFAULT NULL,
`deleted` timestamp NULL DEFAULT NULL,
`created` timestamp NULL DEFAULT NULL,
`modified` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `name` (`name`(255)),
KEY `counter` (`counter`),
KEY `created` (`created`),
KEY `modified` (`modified`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;CREATE TABLE `page` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`format` enum('html','markdown') DEFAULT NULL,
`title` varchar(100) DEFAULT NULL,
`slug` varchar(50) DEFAULT NULL,
`content` text,
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `slug` (`slug`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
~~~## Add Configuration
Copy `backend/config/example.php` to `backend/config/main.php` and edit settings
## Run
Frontendnpm run start
Backend
php -S localhost:9999 -t web/Open in your browser.