Skip to content

marketredesign/challenge-laravel-backend

Repository files navigation

Laravel back-end challenge

Base repository for Laravel back-end coding challenge for applicants.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

NB: when installing via Docker, only composer is required.

  • PHP >= 7.3
  • BCMath PHP Extension
  • Ctype PHP Extension
  • Fileinfo PHP Extension
  • JSON PHP Extension
  • Mbstring PHP Extension
  • OpenSSL PHP Extension
  • PDO PHP Extension
  • PDO_PGSQL PHP Extension
  • Tokenizer PHP Extension
  • XML PHP Extension
  • Xdebug PHP Extension
  • PostgreSQL database
  • Composer

Installing

There are multiple possibilities on getting a development environment up and running. We provide two different types of installation; using docker and manually.

Docker installation

  1. Make sure you have Docker and Docker-compose installed.
  2. Execute composer install to install all composer dependencies.
  3. Copy .env.example to .env.
  4. Execute ./vendor/bin/sail up to create the docker environment.
  5. Execute ./vendor/bin/sail php artisan migrate to create all tables in the database.

For more information see Laravel Sail.

Manual installation

  1. Execute composer install to install all composer dependencies.
  2. Copy .env.example to .env and complete the database credentials.
  3. Execute php artisan key:generate.
  4. Execute php artisan migrate to create all tables in the database.

For development purposes, it is recommended to serve the application either using Laravel Valet (A linux fork is available) or php artisan serve.

Sample data

An anonymized dataset of transactions can be found at data/challenge_data.csv. Please create an appropriate database structure, using Laravel's migrations, into which these transactions with their predictive prices can be imported.

Running the tests

In order to run the tests, the dev dependencies from Composer need to be installed. This is the default behaviour if you followed the installation instructions above.

  • Execute composer test to test all PHP files.

Deployment

n/a

Authors

  • Marijn van der Horst

See also the list of contributors who participated in this project.

License

This project is licensed under the MRD License - see the LICENSE file for details

About

Laravel back-end coding challenge for applicants

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published