58 lines
2.9 KiB
Markdown
58 lines
2.9 KiB
Markdown
# ABSDEV — Landing Page & Admin CMS
|
|
|
|
A modern single-page digital studio website built on the **uploaded Laravel 13 starter**, Tailwind CSS 4, Vite and Livewire 4, with a protected content dashboard.
|
|
|
|
## Requirements
|
|
|
|
- PHP 8.3+ with SQLite or MySQL extensions
|
|
- Composer, Node.js 20+ and npm
|
|
- Laravel-compatible web server / PHP-FPM
|
|
|
|
## Installation
|
|
|
|
```bash
|
|
cp .env.example .env
|
|
composer install # generates a fresh composer.lock with Livewire 4
|
|
php artisan key:generate
|
|
# Configure DB_* in .env, or use SQLite:
|
|
mkdir -p database && touch database/database.sqlite
|
|
php artisan migrate --seed
|
|
npm install
|
|
npm run build
|
|
php artisan absdev:create-admin [email protected]
|
|
php artisan serve
|
|
```
|
|
|
|
**Important:** The source archive had no `vendor/` directory and no Livewire dependency. The delivered `composer.json` requires `livewire/livewire:^4.0`. The original lockfile was removed because it did not contain Livewire; `composer install` generates a new lockfile. Commit that regenerated lockfile before deployment. Do not deploy until dependencies are installed, tests pass and assets are built.
|
|
|
|
Log in at **`/admin/login`** with the administrator account you created. `absdev:create-admin` securely prompts for a password (minimum 12 characters). There is no public administrator registration route and only `is_admin` users are allowed into `/admin`.
|
|
|
|
## Content management
|
|
|
|
- **Overview:** enquiry and section totals, unread messages, recent enquiries and quick actions.
|
|
- **Page sections:** manage titles, eyebrow text, body copy, buttons, ordering and visibility for hero, services, approach, work and CTA sections. Core layout slots are fixed. New custom section keys are stored but require a Blade template to display.
|
|
- **Enquiries:** paginated messages with unread filtering, mark-as-read and deletion.
|
|
- **Site settings:** name, contact email, footer tagline and location.
|
|
- **Contact form:** Livewire input validation and an anti-spam honeypot; stores messages in the database.
|
|
|
|
## Tests
|
|
|
|
```bash
|
|
php artisan test
|
|
npm run build
|
|
```
|
|
|
|
## Security and production notes
|
|
|
|
- Configure HTTPS, `APP_ENV=production`, `APP_DEBUG=false`, secure sessions and backups.
|
|
- The contact form stores personal data. Publish appropriate privacy information and define retention/deletion policies before launch.
|
|
- No email sending, analytics collection, file/media CMS, role hierarchy or visual page builder is implemented. The dashboard's metrics are genuine database counts only.
|
|
- Marketing cards and process steps are currently fixed Blade markup; the dashboard edits the major section intro content and visibility. Expand the data model for fully dynamic cards.
|
|
- Links in the CTA editor are currently user-provided strings; restrict editors to trusted admins.
|
|
|
|
## Package status
|
|
|
|
The current execution environment includes PHP and Node.js but not Composer or `vendor/`, so the PHP tests and dependency resolution could not be run here. See `IMPLEMENTATION_NOTES.md` for verification details.
|
|
|
|
Now th auto deplyment
|