-
Getting this site up and running is fairly simple. Create a database named portfolioSite the import the db.sql file.
-
Modify the details in the config.php file to your preferred database access credentials.
-
Run this in the project root directory
php -S localhost:[port] -t public
-
You will need to open up your mysql server and prefill your user details in the user table.
-
My post content is written in markup and stored inside the database. You will need to install Parsedown using
composer require erusev/parsedown
-
Because Parsedown converts markup in plain html and no classes for tailwind, i found this official tailwindcss plugin @tailwindcss/typography. You install the plugin from nmp using
npm install -D @tailwindcss/typography
Then add the plugin into your
tailwind.config.js
fileplugins: [ require('tailwindcss/typography'), // ... ],
-
Tailwind needs to build the css for when changes are made, so you will need to run in a seperate tab
npx tailwindcss -i app/tailwind/input.css -o ./public/css/styles.css --watch
and keep it running, otherwise you will get inconsistent styling. -
Additional Notes:
- If you encounter any issues, feel free to refer to the official documentation for the technologies used in this project.