Git Product home page Git Product logo

laravel's Introduction

Вот тестовое

  1. чистая инсталляция лары
  2. миграция фейковых комментарий привязаны к пользователям (для пользователей можно использовать встроенную миграцию)
  3. миграция фейковых лайков привязанных к коментарий и пользователей
  4. апи для пагинации и сортировки комментарии - сортировка по пользователям - сортировка по даты - сортировка по лайков

без фронта, только через апи

Установка

  1. клонировать репозиторий:
    git clone https://github.com/SlavKoVrn/laravel
  2. установка composer библиотек:
    composer install
  3. установка javascript библиотек:
    npm install
    npm run dev
  4. сгенерировать ключ безопасности приложения:
    php artisan key:generate
  5. установка базы данных:
    cp .env.example .env
    
    DB_CONNECTION=mysql
    DB_HOST=127.0.0.1
    DB_PORT=3306
    DB_DATABASE=db_laravel
    DB_USERNAME=root
    DB_PASSWORD=password
    
  6. заполнить базу фейками:
    php artisan migrate
    php artisan db:seed --class=UserSeeder
    php artisan db:seed --class=CommentSeeder
    php artisan db:seed --class=LikeSeeder
  7. прописать установленный домен для тестов:
    tests/Functional.suite.yml
    
     - REST:
         depends: PhpBrowser
         url: http://laravel 
  8. запуск тестов:
    php vendor/bin/codecept build
    php vendor/bin/codecept run -- tests/Functional/ApiCest

Codeception Laravel Module Tests

Actions Status

Minimal site containing functional tests for Codeception Module Laravel.

Usage

The main purpose of this project is to verify the proper functioning of the Codeception Module Laravel in a minimal Laravel installation.

You can use it to contribute new features or propose changes in the module and verify that nothing is broken in the process. If that's your goal, be sure to follow the contribution guides for the module.

You can also fork it and use it to reproduce a bug or unexpected behavior for analysis. If that's your case, just add a link to your fork next to the description of your issue in the module's repository.

Lastly, if you just want to see the module in action and run the tests yourself on your local machine just:

  1. Clone the repo:
    git clone https://github.com/Codeception/laravel-module-tests.git
  2. Install Composer dependencies:
    composer update
  3. Create your .env file from the .env.testing file.
  4. Create the database file: database/database.sqlite.
  5. Update database schema and load seeders:
    php artisan migrate --seed

Then, go to the project directory and run:

vendor/bin/codecept run Functional

Create Unit Suite or Acceptance Suite

To create Unit Tests or Acceptance Tests, you need to create the corresponding suite first:

vendor/bin/codecept generate:suite Unit
vendor/bin/codecept generate:suite Acceptance

Credits to Jan-Henk Gerritsen for his work on janhenkgerritsen/codeception-laravel5-sample, which served as the inspiration for this project.

laravel's People

Contributors

tavoniievez avatar slavkovrn avatar luciandex avatar naktibalda avatar fkupper avatar

Watchers

 avatar  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.