This application was built to interact with the Star Wars API providing a simple interface for searching people and movies. The application data is provided via a Laravel API and a Nuxt/Vue front end.
- Backend
- http://localhost:8000
- Laravel
- Frontend
- http://localhost:3000
- Nuxt
- NuxtUI
- Tailwind
After you clone this repository locally, you have 2 options to run the code:
- Build and run a Docker container pre-configured to execute both the frontend and backend
- Run the frontend and backend separately inside your own operating system
- You will need the following installed on your system to run locally without Docker
- PHP 8
- Composer
- Node 20
- You can refer to the Laravel or Nuxt installation instructions for more details on requirements.
- From inside the
/apifolder run
composer installcp .env.example .envphp artisan key:generatephp artisan migrate- select
yesto create the.sqlitefile
- select
- Then from the project root run
docker compose build- only run this the first time you start the application
docker compose up
- Visit http://localhost:3000 in your browser
- From inside the
/apifolder run
composer installcp .env.example .envphp artisan key:generatephp artisan migrate- select
yesto create the.sqlitefile
- select
php artisan serve
- From inside the
/webfolder run
yarn installyarn dev
- Visit http://localhost:3000 in your browser