# Moox Press Monorepo - ARCHIVE
Welcome to the Moox project. This is the OLD Moox Press Monorepo. It is not used anymore, as Moox Press is now part of [the mooxphp/moox monorepo](https://github.com/mooxphp/moox).
## Packages
- Moox Press - early stage, do not try to use!
## Installation
The Laravel dev app in the root-folder of the Moox Monorepo is made for instant development with Laravel Valet, Laravel Sail or Laragon.
```bash
# Create a .env file and adjust to your needs
cp .env.example .env
# Using Laravel Valet or Herd (use .win.php for Windows)
cp LocalValetDriver.mac.php LocalValetDriver.php
# Install Laravel
composer install
php artisan key:generate
# Install WordPress (use initwp.bat for Windows)
./initwp.sh
# Import mooxwp.sql to your DB
mysql -u root -p moox-press < moox-press.sql
# Alternatively do a bunch of commands and run the WordPress web installer
php artisan mooxjobs:install
php artisan make:session-table
php artisan migrate:fresh --seed
# Use Vite (for Laravel Sail on Windows: do it in Ubuntu, not inside the Sail container)
npm install
npm run dev
```
Afterwards you can login using:
- User: sysadm
- Pass: aUkAqKMBgdkoy3tshMGZ
## Deployment
For deployment with Laravel Forge (or on Nginx otherwise) add the location /wp/ part and replace the /wp/ with your intended subfolder:
```
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location /wp/ {
try_files $uri $uri/ /wp/index.php?$query_string;
}
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
```