Laravel 5.5
PHP 7.4
Node v14.16.0
Clone and install composer and node dependencies
git clone git@github.com:fernandocastillo/challenge-comments.git
cd callenge-comments
composer install
npm installConfigure your local database credentials in your .env file
cp ./.env.example ./.envRun migrations and seeders
php artisan migrate --seedTDD was implemented during api development.
Unfortunately I was not able to install neither Vue Testing Library nor Vue Test Utils with this Laravel version.
composer test| Method | Endpoint | Description |
|---|---|---|
| GET | /api/comment[?page=x] | Get paginated comments |
| POST | /api/comment | Create a comment. Payload: { name, comment, [parent_id]} |
Run the server:
php artisan serveWatch for js/css changes:
npm run watchCheck your browser
http://localhost:8000Fernando Castillo desarrollo@freengers.com