Coder Social home page Coder Social logo

laravel-assessment-template's Introduction

Laravel Assessment

Instructions

  1. Create a new repository in your Github account using the provided application zip.
  2. Establish an initial commit with the provided code.
  3. Complete the functional requirements below & commit these changes to your repository. Open a PR with your changes so that they can be reviewed.
  4. Share your repository with us.

Setup

System Requirements

  • Docker Desktop
  • WSL2 (Windows only)

Start by forking the repository to your own GitHub account. Then clone the forked repository to your local machine.

git clone https://github.com/ibi-group-recharge/laravel-assessment-template
cd laravel-assessment-template

Next you'll need to install the dependencies.

docker run --rm -v "$(pwd)":/app -u 1000:1000 -e COMPOSER_HOME=/tmp --workdir /app bitnami/laravel composer install
docker run --rm -v "$(pwd)":/app -u 1000:1000 -e COMPOSER_HOME=/tmp --workdir /app bitnami/laravel npm install

Lastly create a .env file.

cp .env.example .env

Running the application

Start the application using Docker Compose.

docker compose up

You should now be able to access the application at http://localhost.

You can stop the application with Ctrl+C and then run docker compose down to remove the containers.

Artisan commands

All artisan commands can be run with docker run --rm -v "$(pwd)":/app -u 1000:1000 -e COMPOSER_HOME=/tmp --workdir /app bitnami/laravel php artisan <command>

Be sure you are in the root directory of the project when running the command.

See the Laravel docs to see how to create controllers, models, etc with artisan commands

Requirements

This assessment is to see how your write clean, readable code and how you structure your application. Front end styling is not required, but you can add it if you'd like. We won't take it into account when reviewing the assessment.

The application should:

  • Seed a database with at least 5 actors and at least 3 movies per actor
  • Use Eloquent to define the relationship between actors and movies
  • Have a view that displays the list of actors and their associated movies
  • Also include one input that allows the list of actors to be filtered. This can either be done with just PHP or with JavaScript, whichever you prefer. We're just looking for the end result.
  • Have a view with one input that allows the user to search people via the Star Wars API (https://swapi.dev/documentation#people) and then displays the data.
    • The API call should be done on the back end.

We're really just looking for clean code and general best practices here. Nothing fancy is required.

laravel-assessment-template's People

Contributors

adamlove01 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.