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.
- Login/Sign up user
- Show user profile
- Edit user profile
- Show Repositories
- Create new Repository
- Edit Repository
- Delete Repository
- Laravel 11.9
- Postgre 14.12
- Laravel Jetstream 5.1
- PHPUnit 11.0
Install and run
- Clone and move to folder
$ git clone git@github.com:abrahamuchos/repository-guide.git
$ cd repository-guide
- Install dependecies
$ composer install
$ npm install
- You can run all test
$ 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