A project to display information about Star Wars characters, planets, and starships using the SWAPI API. This project is built using Laravel for the backend API which provides RESTful API endpoints. React for the frontend, using Material-UI for styling in a single-page application (SPA) design.
- Display a list of Star Wars characters, planets, and starships
- Show details of individual characters, planets, and starships
- Search functionality to find specific characters through their names
- Pagination (or infinite scroll) for character, planet, and starship lists
- Laravel
- Vite.js
- React.js
- Material-UI
- Axios
- Guzzle
- Clone the repository.
- The root folder of the project is the Laravel backend, run
composer install
to install dependencies. - Create a new file named
.env
in the root folder directory and copy the contents of the.env.example
file into it. - Generate a new
APP_KEY
by runningphp artisan key:generate
. - Run the Laravel backend API by running
php artisan serve
that can be accessed throughhttp://localhost:8000
. - Navigate to the
frontend
wich isswapi-react
directory and runnpm install
to install dependencies. - Run the frontend by running
npm run dev
. - Open your browser and go to
http://localhost:3000
.