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
/api
folder run
composer install
cp .env.example .env
php artisan key:generate
php artisan migrate
- select
yes
to create the.sqlite
file
- 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
/api
folder run
composer install
cp .env.example .env
php artisan key:generate
php artisan migrate
- select
yes
to create the.sqlite
file
- select
php artisan serve
- From inside the
/web
folder run
yarn install
yarn dev
- Visit http://localhost:3000 in your browser