A simple project displaying data of comics, characters and series.
This pages was built to practice Laravel Framework and Livewire.
Especially to understand how to work with an external api with json, in this case with Marvel API.
📄 Laravel
📝 Tailwind CSS
📑 Livewire
📄 Alpine.js
- Clone this 📂 repository.
cd
into it.- Install Composer Dependencies.
composer install
- Install NPM Dependencies.
npm install
- Rename or copy
.env.example
file to.env
- Set your
MARVEL_API_PUBLIC_KEY
andMARVEL_API_PRIVATE_KEY
in your.env
file.
In order to use the Laravel app, you need to obtain an 🔑 Marvel API key. - Generate an app encryption key.
php artisan key:generate
php artisan serve
- Visit
localhost:8000
in your browser.
/
- List of the first 10 comics of the month./comics/{id}
- View comic details by id./characters
- List of characters./characters/page/{page}
- List of characters by page./characters/{id}
- View character details by id./series
- List of series./series/page/{page}
- List of series by page./series/{id}
- View series details by id.
It's used in the routes /characters
and /series
.
It's used in all routes.
You need press Shift + 7
or /
to focus the search input.
Data provided by ©Marvel.
Images and content were taken from the following resource:
This site was built entirely for education purposes only.
Code in this repository is open-sourced software licensed under the GPL-3.0 license.
See the LICENSE.md file for details.
Saul Hdz Lara