Skip to content

rad8329/swapi-laravel-client

Repository files navigation

Laravel Logo

About this project

This is a basic Laravel app to practice a common synchronous communication using REST

Related

Requirements

  • PHP 8.1

Note: Just in case you dont want to have another PHP version on your dev environment, please consider to use Docker , see the Tooling section

Setup

Using local environment

Placed into the project folder run the command $ composer install

Using Docker

Placed into the project folder run the command $ docker-compose up -d && composer install

Note: You could change the application port by changing the environment variable APP_PORT

How to use it

If you're using Docker, just go to the url http://localhost:8080

Tooling

There are some docker wrappers within the folder bin, they are:

  • ./bin/@composer example ./bin/@composer dumpautoload
  • ./bin/@php example ./bin/@php artisan optimize
  • ./bin/@npm
  • ./bin/cli to get into the docker container

Nice to have