Skip to content

Instantly share code, notes, and snippets.

@connecteev
Created October 9, 2019 02:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save connecteev/9585bba7a35374d751d0d9bc0c147ea2 to your computer and use it in GitHub Desktop.
Save connecteev/9585bba7a35374d751d0d9bc0c147ea2 to your computer and use it in GitHub Desktop.

BACK END:

See https://github.com/guillaumebriday/todolist-backend-laravel

$ git clone https://github.com/guillaumebriday/todolist-backend-laravel.git $ cd todolist-backend-laravel

cp .env.example .env Change DB settings. IMPORTANT: Before running migrate, make sure .env file is updated with: DB_HOST=127.0.0.1

Run: composer install && php artisan key:generate && php artisan jwt:secret

Which does: $ composer install $ php artisan key:generate $ php artisan jwt:secret

$ php artisan migrate --seed

This will create a new user that you can use to sign in : Email : darthvader@deathstar.ds Password : 4nak1n

Useful commands

Generate fake data: php artisan db:seed --class=DevDatabaseSeeder

Running tests : ./vendor/bin/phpunit --cache-result --order-by=defects --stop-on-defect

Running php-cs-fixer : ./vendor/bin/php-cs-fixer fix --config=.php_cs --verbose --dry-run --diff

Generate backup: php artisan backup:run --only-db

Discover package: php artisan package:discover

FRONT END:

See https://github.com/guillaumebriday/todolist-frontend-nuxt

Commands: $ git clone https://github.com/guillaumebriday/todolist-frontend-nuxt.git $ cd todolist-frontend-nuxt $ cp .env.example .env change BASE_URL=http://localhost:8001 $ npm install $ npm run dev

DONT FORGET the .env file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment