This is a mini CMS project containing 7 small CRUD backend pages to maintain the actual website using the MVC concept.
- Some of them are basic data saving and retrieving
- Some can upload images to storage
- One has a WYSIWYG HTML editor (TinyMCE) which is used to handle formatted texts to be saved and retireved from the database
- The guestbook uses Google reCAPTCHA v3 to ignore spam without user interaction
- Laravel 8
- Bootstrap 5
- TinyMCE WYSIWYG HTML editor
- Google reCAPTCHA v3
There are 2 applications separated by Laravel's middleware routes.
which is a website retrieving data from the database and presenting it through Blade templates with Bootstrap.
You don't need to be registered/logged in to access this application. After following the installation steps you can open http://localhost:8000
from your browser and click through the pages.
is more like a mini CMS. You can modify the data of each page here. For this part of the project, you need to be registered and logged in (step 5 shows how you can do it). Here you can modify the data shown in the Frontend application.
girl@WithAPlan ~ % git clone https://github.com/girlWithAPlan/laravel8_website.git
girl@WithAPlan laravel8_website % cd laravel8_website
girl@WithAPlan laravel8_website % composer install
- Rename the
.env.example
file to.env
- run the
php artisan key:generate
command to generate your APP_KEY in the.env
file
- Run
php artisan migrate:fresh --seed
to initialise your database You can access the database from the project's directory by runningmysql -u root
(no password needed)
Symbolic links in Laravel 8
Run the php artisan storage:link
command to create a symlink for the project
In the storage/app/public
directory create the following 2 directories for the Album feature to work
girl@WithAPlan public % mkdir album_covers
girl@WithAPlan public % mkdir photos
This project requires node and npm to be installed, if you don't have it already then you can find a quick guide here
Then you can run npm install
to install the asset dependecies and npm run dev
to combine the style and javascript files
You can run the application by running php artisan serve
and open http://localhost:8000
from your browser.
To access the CMS application of this project, you need register on http://localhost:8000/register
, or you can just use a test user to login test@gmail.com - TestTest
(NOTE - it is not recommended to use this in production, so please change it)
If you want to try the GuestBook page as well, you can generate new reCAPTCHA keys and add them to the .env
file (RECAPTCHA_SITE_KEY
and RECAPTCHA_SECRET_KEY
)
Follow the instructions to create a v3 key-pair
This mini CMS website project is open-sourced software licensed under the GNU GPLv3 license.