Code Monkey home page Code Monkey logo

20171005's Introduction

PHP / MySQL II

Here is the repository for the course PHP PROGRAMMING WITH MYSQL II (CEWP 559).

Installation

Docker

In this course we will be using Docker for setting up our environment.

To install Docker you can follow the instructions as follow:

After a successful installation of docker, use bash or git bash (on windows) to go to the root of the project and execute the followings:

docker-compose build
docker-compose up -d

After a successful initialization, in your browser you can anvigate to http://localhost and you should be able to see the phpinfo page. Also navigating to http://localhost/test_db.php should give you 2 record that are already in the database.

If you want to check the execution of docker images inside your system, in a new instance of terminal or git bash, you can execute the following to see what's running:

docker ps 

and to ssh to the (php) machine:

docker ps
docker exec -it 7faf3ec980be /bin/bash

7faf3ec980be is the ID of the machine retrieved from docker ps. Replace it with your own Container ID.

If you want to kill everything and start Fresh?

docker-compose down

and start from the beginning.

Vagrant

If fo any reason, you have difficulties installing Docker on your machine and get yourself setup, you can fall back to Vagrant. You need to install VirtualBox and Vagrant then all you need to run:

vagrant up

20171005's People

Contributors

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