Code challenge: create an API for a made up BANK. For full requirements, see requirements.md.
-
Clone repo
-
Run
composer install
-
Create a new database for the project
-
Copy
.env.example
to.env
and edit, saving environment variables according to local settings (notably, linkingDB_DATABASE
to the database created in Step 3,DB_USERNAME
andDB_PASSWORD
to those matching local MySql settings, andAPP_URL
to the addresss of your local server for the project) -
Run
php artisan migrate
to migrate your database for the project -
If no
APP_KEY
is present in.env
, (as per Laravel installation instructions) runphp artisan key:generate
-
Run
php artisan db:seed
to seed your test database with 50 transaction records. -
Serve the project via local server
There are a number of automated tests included. To run them, from the project directory,
run vendor/bin/phpunit
A full list of routes can be seen by running php artisan route:list
from the project root.