Git Product home page Git Product logo

yii2-github-browser's Introduction

Yii2 GitHub Browser App

Yii2 GitHub Browser App was built on Yii 2 Basic Project Template is a skeleton Yii 2 application best for rapidly creating small projects.

REQUIREMENTS

The minimum requirement by this project template that your Web server supports PHP 5.4.0.

VIRTUAL HOST CONFIGURATION

  1. C:\Windows\System32\drivers\etc\hosts add lines:
    127.0.0.1       your-name-site.local
    127.0.0.1       www.your-name-site.local
  1. For your local server must change httpd-vhosts.conf. For example in my case find C:\wamp\bin\apache\apache2.4.9\conf\extra\httpd-vhosts.conf and add lines:
<VirtualHost *:80>
    DocumentRoot "c:/wamp/www/your-name-site/web/"
    ServerName your-name-site.local
	SetEnv APPLICATION_ENV "development"
	<Directory "c:/wamp/www/your-name-site/web/">
		DirectoryIndex index.php
		AllowOverride All
		Order allow,deny
		Allow from all
    </Directory>
</VirtualHost>

INSTALLATION

Step 1 - install APP from an Archive File

Click «Download ZIP» on https://github.com/alenkasun/yii2-github-browser and unzip in local site …\your-name-site, so you must receive the next structure in local site root::

  assets/             contains assets definition
  commands/           contains console commands (controllers)
  config/             contains application configurations
  controllers/        contains Web controller classes
  mail/               contains view files for e-mails
  models/             contains model classes
  runtime/            contains files generated during runtime
  tests/              contains various tests for the basic application
  vendor/             contains dependent 3rd-party packages
  views/              contains view files for the Web application
  web/                contains the entry script and Web resources
  ....

Step 2 - install dependency libs via Composer

If you do not have Composer, you may install it by following the instructions at getcomposer.org.

Install folder VENDOR with all dependency libs via Copmoser: open cmd.exe in site root (shirt + command from context menu) and perform:

  - if composer was installed globally:
        composer self-update
        composer install
  - else:
        php composer.phar self-update
        php composer.phar install

As a result there is a folder VENDOR at site root.

DATABASE CONFIGURATION

Database installation

Create new BD and import github_browser.sql via convinient BD-client (example: via phpMyAdmin or HeidiSql).

Database config

Edit the file config/db.php with real data, for example:

return [
    'class' => 'yii\db\Connection',
    'dsn' => 'mysql:host=localhost;dbname=github_browser',
    'username' => 'git',
    'password' => 'git',
    'charset' => 'utf8',
];

Now you should be able to access the application through the following URL:

http://your-name-site.local/

yii2-github-browser's People

Contributors

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