No description
- PHP 49.8%
- JavaScript 32.8%
- CSS 11.5%
- SCSS 5%
- Blade 0.9%
| app | ||
| bootstrap | ||
| config | ||
| database | ||
| public | ||
| resources | ||
| routes | ||
| storage | ||
| tests | ||
| .env.example | ||
| .gitattributes | ||
| .gitignore | ||
| .remarkrc | ||
| .sass-lint.yml | ||
| artisan | ||
| class-wp-detection.phps | ||
| composer.json | ||
| composer.lock | ||
| package-lock.json | ||
| package.json | ||
| phpunit.xml | ||
| README.md | ||
| server.php | ||
| webpack.mix.js | ||
| yarn.lock | ||
What's The WP Theme
A Wordpress theme discover. Working version here.
Running locally
Install main dependencies:
Install
The code
git clone https://github.com/rafaelgou/whats-the-wp-theme.git
composer install
cp .env.example .env
Fill database, enviroment, debug and url settings:
APP_ENV=local
APP_KEY=LONG-RANDOM-STRING
APP_DEBUG=true
APP_URL=http://127.0.0.1/8000
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=wtwpt
DB_USERNAME=wtwpt_user
DB_PASSWORD=YOUR-STRONG-PASSWORD
Database
You need a database (MySQL/MariaDB or Postgres). Create a user credentials and a database.
For MySQL it could be:
CREATE DATABASE `whats_the_wp_theme` COLLATE 'utf8_unicode_ci';
CREATE USER 'whats_the_wp_theme'@'%' IDENTIFIED BY 'YOUR-STRONG-PASSWORD';
GRANT ALL PRIVILEGES ON whats_the_wp_theme.* TO 'whats_the_wp_theme'@'%';
FLUSH PRIVILEGES;
Migrating and running
Then you can run:
php artisan migrate
php artisan serve
You'll have the site available at http://127.0.0.1:8000.