Code Monkey home page Code Monkey logo

yii-example's Introduction

Complete Yii Example

The goal of this project is to have a completely installed and running example site built using Yii. This example aims to cover as many aspects of Yii as possible. Some of the examples will cover:

  • DB Migrations
  • Unit Tests
  • Modules
  • Behaviours
  • JavaScript interaction with Yii's JavaScript objects
  • Provide framework for using extention and vendor add-ons development and testing.
  • Use of PHP's Namespace

Requirements

Recommended

  • A fast internet connection to download the Debian Vagrant box. (The file is 564MB)
  • A computer with at least 4GB RAM.

Install

These install steps assume the host system is unix based (Linux, Mac OSX, *BSD, etc.).

You will need to add the following line to your local /etc/hosts

192.168.42.101 yii-example.local.domain yii-example yii-demo-blog yii-demo-hangman yii-demo-helloworld yii-demo-phonebook

Then run the following commands:

git clone https://github.com/kfacx/yii-example.git
cd yii-example
vagrant up
chmod 0600 vagrant_insecure_key
cap deploy

The vagrant up can take a long time to finish. If you have a slow internet connection it can take hours to download the base box.

Once complete, the sites can be tested with the following URLs:

http://yii-example/
http://yii-demo-blog/
http://yii-demo-hangman/
http://yii-demo-helloworld/
http://yii-demo-phonebook/

Development:

If you intend to use this project for personal development or to contribute to this project, seeing the results is easy and fast. Simply edit the files then run:

cap deploy

If all the unit tests pass then the site is now updated on the VM.

Enjoy!

yii-example's People

Contributors

magister990 avatar bjmllr avatar

Watchers

James Cloos avatar githow 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.