Coder Social home page Coder Social logo

jeandev84 / freecodecamp-php-oop Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pfwd/freecodecamp-php-oop

0.0 0.0 0.0 216 KB

Watch me build this Invoice Application in PHP->

Home Page: https://www.twitch.tv/howtocodewell

License: MIT License

Dockerfile 0.93% PHP 94.08% HTML 0.10% Hack 0.08% TSQL 4.80%

freecodecamp-php-oop's Introduction

FreeCodeCamp PHP OOP Course

By Peter Fisher How To Code Well

Installation

Create .env

$ cp .env.dist .env

Modify values in .env

Creating Docker Machine (Optional)

$ docker-machine create howtocodewell-oop-php
$ docker-machine env howtocodewell-oop-php
$ eval $(docker-machine env howtocodewell-oop-php)

Create the containers and build the images

$ docker-compose up -d --build

Find IP of Docker machine

$ docker-machine ip howtocodewell-oop-php
192.168.99.100

Put the IP in a browser

Database

Please note: This will delete the database and create a new one. All data will be lost

To rebuild the database run the following command from the host machine. (Change <DB_PASSWORD>)

$ docker-compose exec -T db mysql -u root --password=<DB_PASSWORD> < mysql/rebuild.sql

Or from within the container

$ docker-compose exec db mysql -u root -p
Enter password: 

mysql> use invoice_app;
mysql> source /scripts/rebuild.sql

Requirements

  • Docker 18.09.2
  • Docker Machine 0.16.1 (Optional)
  • Docker Compose 1.23.2

Testing

Run unit tests

$ docker-compose exec web vendor/bin/codecept run unit 

Run unit tests with code coverage

$ docker-compose exec web vendor/bin/codecept run unit --coverage --coverage-xml --coverage-html
$ open tests/_output/coverage/index.html

Run acceptance tests

$ docker-compose exec web vendor/bin/codecept run acceptance

freecodecamp-php-oop's People

Contributors

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