Laravel-based simple web application that utilizes The Rick and Morty API.
This simple application, based on generated Laravel started plate, is a brief demonstration of PHP and Laravel skills, covering following requirements:
Simple application (~2-3 hours of effort) that will demonstrate a knowledge of a modern Layered Architecture. It should meet the following requirements:
- Connect to public API as the datasource.
- Create routes for Rick and Morty characters, episodes, and locations
- Present the data in a table or grid format (does not have to be pretty).
- Allow for filters to be applied
- Use pagination for the results
- A service that will create a PDF for a character profile.
- Integrate with a separate NestJS-based CRUD service to
store the following:
- Favourite / Un-favourite: characters, locations, & episodes
- Review and rate episodes
- Favourite characters, locations, & episodes.
- Review and rate episodes:
- Include text.
- Star rating (1-5).
- Create open API definition for your schema (OAS3).
- Write unit tests and show coverage report.
- Check out the repository.
- Create
.env
from.env.example
and generateAPP_KEY
(php artisan key:generate
). - Install dependencies -
composer install.
. - Generate Backend cli:
- See Fanbase repository for instructions to make Swagger endpoint available.
- Once the Swagger endpoint is available, generate Fanbase client:
make gen-client
.
- Run the app:
make serve
- Navigate to http://localhost:8000/.
Run make lint
.
Run make test
.
The Laravel framework is open-sourced software licensed under the MIT license.