Project developed under Test Driven Development (TDD) methodology, maintaining a list of repositories of interest to the community.
This project aims to experiment and provide guidance for Laravel development under the TDD methodology.
Install and run
$ git clone [email protected]:abrahamuchos/repository-guide.git
$ cd repository-guide
$ composer install
$ npm install
$ php artisan test
Or you can run tests individually at
$ php artisan test --filter RepositoryControllerTest::test_anyone
You can view tests individually at
/tests/Feature/Http/Controllers/PageControllerTest.php
/tests/Feature/Http/Controllers/RepositoryControllerTest.php
Create a copy of the .env.example
file and rename it to .env
. Next, configure the necessary environment variables.
Generate an application key by running php artisan key:generate
.
Run php artisan migrate
to create the database tables.
Run php artisandb:seed
to create dummy data and admin user.
Run php artisan serve
to start the Laravel development server.
To run this project, you will need to add the following environment variables to your .env file
DB_HOST
DB_PORT
DB_DATABASE
DB_USERNAME
DB_PASSWORD
MIT