A mobile-first CodeIgniter 4 + MySQL + Tailwind CSS starter for an EV discovery, comparison, recommendation, review, knowledge and lead generation platform.
- Public home page
- Vehicle listing and detail pages
- Vehicle comparison page
- EV running cost calculator
- Lead capture workflow
- Admin login placeholder
- Admin dashboard
- Vehicle and lead admin views
- MySQL schema
- CI4-style models and controllers
- Brevo email service wrapper
- Mobile-first Tailwind layouts
- SEO-ready page metadata structure
- Install Composer if not already installed.
- Run:
composer install
cp env.example .env- Create MySQL database:
CREATE DATABASE charj CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;- Import the starter schema:
mysql -u root -p charj < sql/charj_schema.sql- Update
.envdatabase and Brevo credentials. - Run locally:
php spark serveOpen http://localhost:8080.
- Install full CodeIgniter 4 app skeleton if your server does not already have it.
- Copy the
app,public,sql, anddocsfolders into the CI4 app. - Add authentication using CI4 Shield or custom auth.
- Connect admin form actions to create/update/delete methods.
- Add dealer dashboard and role permissions.
- Replace Tailwind CDN with compiled Tailwind for production.
- Connect Brevo templates and contact lists.
- Use HTTPS.
- Set
CI_ENVIRONMENT = production. - Disable debug toolbar.
- Use compiled/minified CSS.
- Configure form rate limits and CSRF.
- Add queue/cron for heavy email workflows.