To serve (development) the application:
- PHP 8.2 - 8.3 is required
- Node.js 22 is required
- The
nodemonpackage is required (can be installed locally or globally) - For now, installing the Frontend CMS repository in the same directory is required - Repo Here
- Do the following:
- Run
composer install - Run
pnpm install - Duplicate the
.env.examplefile and rename it to.env - Run
php artisan migrate --seedand let artisan create thedatabase.sqlitefile (if you left thesqlitedb connection set in your.envfile) - Run
php artisan key:generate - Run
composer run dev
- Run
- Default hosts for frontend and api are
localhost:3000andlocalhost:8000respectively - For testing:
- Duplicate the
.env.testing.examplefile and rename it to.env.testing - Run
php artisan key:generate --env testing - Run
php artisan test
- Duplicate the
To install the Frontend CMS repository, see the readme: https://github.com/jeremy-step/next-laravel-cms-front/blob/main/README.md