web development portfolio site with custom CMS, online here.
-Php 8.2+
-Laravel 11
-npm
-Composer
- set up a local server using something like Xampp
- start the local server. In Xampp, this is done by pressing the start buttons for Apache and MySQL.
- clone the repository to a folder within your localhost directory. (In the case of Xampp, probably c:/xampp/htdocs)
- Go to the new directory:
cd sepwebdev
. - with Composer installed, run the command
composer install
. - copy
.env.example
and rename it to.env
. - run:
php artisan key:generate
. The key will appear in your .env file'sAPP_KEY
field. - run php artisan migrate to create needed tables.
- Optionally, if you want to use some default posts, open phpadmin (eg. xampp>mysql>config), go to the sepwebdev database, drop all the tables and import sepwebdev.sql, included in the root of this repository.
- run
php artisan serve
and you can view the website at the provided link. - For hot asset updates, run
npm i
followed bynpm run dev
.
From the admin portal link at the bottom of the page, you can use the cms to make or edit posts, which will appear in the 'projects' section of the home page.
To make a user who can add, edit posts, go to the project root directory, in your terminal, run:
php artisan tinker
$user = new App\Models\User;
$user->name = 'John Doe';
$user->email = '[email protected]';
$user->password = bcrypt('password');
$user->save();
Nb: This project was developed for a server with no symbolic link capabilities, so it works without symbolic links.