Giter VIP home page Giter VIP logo

espresso_test's Introduction

Technologies

  • Docker
  • Laravel 9
  • PHPUnit Test

How to Setup

  1. Ensure you have Docker installed and that http://localhost[:port] can access the containers once set up (in our docker-compose, we configure port 4545 on the host to forward to the nginx's port 45)

Special case for Linux on Windows, read here: https://nickjanetakis.com/blog/setting-up-docker-for-windows-and-wsl-to-work-flawlessly#install-docker-and-docker-compose-within-wsl

  1. Clone the github repository into your local dev folder.
  2. Copy contents from file .env.example to .env. If yor are using docker keep DB Connection properties as it is.
  3. Run docker-compose up -d --build
    • -d - Run as Deamon
    • --build - If your image has not been created, it will create new image
  4. Once you setup docker you can login to the container with docker-compose exec app bash
  5. Cool..... So far you are good if you are able to login to docker terminal. 2 more steps.
  6. Run composer install
  7. Yes All done

Run Test Cases

  1. Login to the container with docker-compose exec app bash
  2. Run ./vendor/bin/phpunit

espresso_test's People

Contributors

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