To serve (development) the application:
- PHP 8.2 - 8.3 is required
- Node.js 22 is required
- The
nodemon
package 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.example
file and rename it to.env
- Run
php artisan migrate --seed
and let artisan create thedatabase.sqlite
file (if you left thesqlite
db connection set in your.env
file) - Run
php artisan key:generate
- Run
composer run dev
- Run
- Default hosts for frontend and api are
localhost:3000
andlocalhost:8000
respectively - For testing:
- Duplicate the
.env.testing.example
file 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