Git Product home page Git Product logo

laravel_phpunit's Introduction

当レポジトリについて

当レポジトリでは、「Laravel テスト実践入門! ~ Laravel 9 で始めるTDDテスト入門講座 ~」で使用するコードを置いています。

設置方法

基本的には講座を視聴し、その各回で見たコードを実際に手を動かして書いて動作を確認いただきたいのですが、とは言え、完成版もあった方が良いとは思いますので、以下手順を記載させていただきます。

ダウンロード

以下のコマンドでクローンします。 (最後の lara9test の箇所は適宜変更して下さい。作成されるフォルダ名になります)

git clone https://github.com/nshiro/lara9test lara9test

又は、レポジトリサイトの右上「Code」を押した後に出てくる「Download ZIP」でダウンロードします。

設定等

システムのトップディレクトリに入り、composer install を行います。

composer install

新規でDBを作成し、.env.example を .env にコピーをした上で、.env に作成したDBの設定をします。

以下のコマンドで、.env の APP_KEY を設定します。

php artisan key:generate

以下のコマンドでダミーデータを登録します。

php artisan migrate:fresh --seed

以上です。

WEBサーバは、各自の環境に応じた形で設定して下さい。

Laravel_PHPUnit

laravel_phpunit's People

Contributors

neko-reset avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.