Audio & Video [VideoTutorial] MyBB 2.0 Install a Development Copy
#1
Video 
[VideoTutorial] MyBB 2.0 Install a Development Copy
[Image: MyBB2.png]

Introduction:

i was made thise video tutorial to show how install a Development Copy of MyBB 2.0.
i hope thise video can help to the new developments or increased yours skills.

Video:




Glossary:


VirtualBox: is a software of virtualización for architectures. By means of this application it is possible to install additional operating systems, well-known likeinvited systems”, within another operating systemhost”, each one with its own virtual atmosphere.

Vagrant: it is a software that allows us to form our virtual machines of fast and centralized way. So that Vagrant works to us we needed to have installed VirtualBox or VMware
Vagrant encapsulates the virtual machines in boxes: “box”.

Git: it is a software of version control thinking about the efficiency and the trustworthiness of the maintenance of versions of applications when these have a great number of source code archives.


Summary of Steps to install Development Copy of MyBB2 :

1. Install VirtualBox 
2. Install Vagrant
3. Open you Terminal, and type:
Code:
vagrant box add laravel/homestead

Note: expect file to download depends on your internet connection

4. install Homestead manually by simply cloning the repository, as the Homestead box will serve as the host to all of your Laravel projects
Code:
git clone https://github.com/laravel/homestead.git Homestead


5. Run the bash init.sh command from the Homestead directory to create the Homestead.yaml
Code:
bash init.sh

Note: The Homestead.yaml file will be placed in your ~/.homestead directory.

6. Setting the new file, Homestead.yaml to you Provider.
The provider key in your Homestead.yaml file indicates which Vagrant provider should be used: virtualbox
Code:
provider: virtualbox


7. Set Your SSH Key: change to you email

Code:
ssh-keygen -t rsa -C "you@homestead"


8. Configure Your Shared Folders:
The folders property of the Homestead.yaml file lists all of the folders you wish to share with your Homestead environment

Example with laravel/vagrant:
folders:
    - map: ~/Code
      to: /home/vagrant/Code
      type: "nfs"
      
Example with MyBB2:
folders:
    - map: ~/Code/mybb2
      to: /home/vagrant/Code/mybb2
      
9. Edit Host file on you computer, The hosts file will redirect your requests for the local domains into your Homestead environment.

on Mac OSx: open terminal: /private/etc/hosts

on Windows OS: C:\Windows\System32\drivers\etc\hosts

Example:
192.168.10.10  homestead.app

Example 2:  Add mybb2.dev to your machine's /private/etc/hosts file.
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
192.168.10.10   homestead.app
192.30.252.120 mybb2.dev
127.0.0.1          localhost
255.255.255.255 broadcasthost
::1             localhost
fe80::1%lo0     localhost


10. Now, can Start the Vagrant and continue to Download The Development Copy of Mybb2
Code:
Vagrant Up

Note: Go to ~/Code directory with the virtual machine

11. Clone the repository under /home/vagrant/Code/ 

Code:
git clone git@github.com:mybb/mybb2.git


12. Give write permissions to the storage/ directory [MyBB2 Folder Root]

Code:
chmod -R 777 storage/


13. Install Composer Dependencies

Code:
composer install


14. In a default Homestead environment you can leave the copy untouched and everything will work right out of the box.
Code:
cp .env.example .env
vim .env


15. Publish assets by packages

Code:
php artisan vendor:publish


16. Install migrations table and run migrations
Code:
 php artisan migrate:install
 php artisan migrate


17. [Optional] Add Debug Data [aka Seeds]

Code:
php artisan db:seed


Now, The setting of VirtualBox, Vagrant and MyBB2 its ready to used and test

Open your Browser and type: mybb2.dev  

MyBB2 its in Development, Not to be used on live boards!

Links Soporte:
[Image: 51.jpg]
We11World [ Winning Eleven ] , Blog , Archive Forums
Reply
#2
[ VideoTutorial ] MyBB 2.0 Install a Development Copy with XAMPP
[Image: MyBB2_Logo.png]

Introduction:

thise video tutorial show how install a Development Copy of MyBB 2.0. with XAMPP
hope thise video can help to the new developments or increased yours skills.

Video:




Glossary:

XAMPP: XAMPP stands for Cross-Platform (X), Apache (A), MariaDB (M), PHP (P) and Perl (P). It is a simple, lightweight Apache distribution that makes it extremely easy for developers to create a local web server for testing and deployment purposes.  

Git: it is a software of version control thinking about the efficiency and the trustworthiness of the maintenance of versions of applications when these have a great number of source code archives.


Summary of Steps to install Development Copy of MyBB2 :

1. Install XAMPP 
2. Download the project MyBB2 via Clone GitHub
3. extract the Download file to the Roots of XAMPP and put it in htdocs/mybb2 roots Xampp:
Code:
/Applications/XAMPP/xamppfiles/htdocs/mybb2

4. Change the DataBase details in /config/database.php
Root XAMPP Example/Applications/XAMPP/xamppfiles/htdocs/mybb2/config/database.php

Note:In the default installation, XAMPP has no passwords set and it is not recommended to run XAMPP, depend of your configuration, in that example its:
Quote:'mysql' => [
      'driver' => 'mysql',
      'host' => env('DB_HOST', 'localhost'),
      'port' => env('DB_PORT', '3306'),
      'database' => env('DB_DATABASE', 'mybb3'),
      'username' => env('DB_USERNAME', 'root'),
      'password' => env('DB_PASSWORD', ''),
      'charset' => 'utf8',
      'collation' => 'utf8_unicode_ci',
      'prefix' => '',
      'strict' => false,
      'unix_socket'   => '/Applications/XAMPP/xamppfiles/var/mysql/mysql.sock'

5. Change the DataBase details in the .env file
Note: You Must Create the File with your Terminal 
Example: sudo nano .env
Quote:APP_ENV=local
APP_DEBUG=true
APP_KEY=SomeRandomString

DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=mybb3
DB_USERNAME=root
DB_PASSWORD=
DB_UNIX_SOCKET=/Applications/XAMPP/xamppfiles/var/mysql/mysql.sock

CACHE_DRIVER=file
SESSION_DRIVER=file


6. Set Your SSH Key: change to you email
Code:
ssh-keygen -t rsa -C you@homestead


7. Give write permissions to the storage/ directory [MyBB2 Folder Root]

Code:
chmod -R 777 storage/


8. Install Composer Dependencies

Code:
composer install


9. Check the .env file its Correct with the /config/database.php information
Code:
cp .env.example .env
vim .env


10. Publish assets by packages

Code:
php artisan vendor:publish


11. Install migrations table and run migrations
Code:
 php artisan migrate:install
 php artisan migrate


12. [Optional] Add Debug Data [aka Seeds]

Code:
php artisan db:seed


Now, The setting with XAMPP and MyBB2 its ready to used and test

Open your Browser and type: Localhost/mybb2/:8000  

MyBB2 its in Development, Not to be used on live boards!

Resume on Terminal

Quote:DiegoPino:mybb23 diegopino$ php artisan vendor:publish
Copied Directory [/vendor/mybb/parser/resources/lang] To [/resources/lang/vendor/parser]
Copied Directory [/vendor/mybb/parser/resources/config] To [/config/parser.php]
Copied Directory [/vendor/mybb/parser/resources/migrations] To [/database/migrations]
Copied Directory [/vendor/mybb/settings/src/database/migrations] To [/database/migrations]
Publishing complete for tag []!
DiegoPino:mybb23 diegopino$ php artisan migrate:install

DiegoPino:mybb23 diegopino$ php artisan migrate:install
Migration table created successfully.
DiegoPino:mybb23 diegopino$ php artisan migrate
Migrated: 2014_10_12_000000_create_users_table
Migrated: 2014_10_12_100000_create_password_resets_table
Migrated: 2015_02_06_193129_create_forums_table
Migrated: 2015_02_06_193135_create_posts_table
Migrated: 2015_02_06_193141_create_topics_table
Migrated: 2015_02_12_025505_create_roles_table
Migrated: 2015_02_12_025520_create_permissions_table
Migrated: 2015_02_12_025532_create_permission_role_table
Migrated: 2015_02_14_220949_add_num_posts_to_topics_table
Migrated: 2015_02_16_164601_create_parser_badwords_table
Migrated: 2015_02_16_164601_create_parser_mycode_table
Migrated: 2015_02_16_164601_create_parser_smilies_table
Migrated: 2015_02_24_131001_create_user_settings_table
Migrated: 2015_02_26_122601_create_confirmations_table
Migrated: 2015_02_26_133000_add_last_visit_to_users_table
Migrated: 2015_02_26_153000_add_num_posts_to_users_table
Migrated: 2015_02_26_153000_soft_delete_to_posts_table
Migrated: 2015_02_27_135400_add_guest_posting
Migrated: 2015_03_06_110928_create_settings_table
Migrated: 2015_03_06_110933_create_setting_values_table
Migrated: 2015_03_06_121600_create_searchlog_table
Migrated: 2015_03_06_174600_add_last_page
Migrated: 2015_03_07_143000_fix_guest_searching
Migrated: 2015_03_07_213700_remove_user_settings
Migrated: 2015_03_07_220139_remove_is_user_setting_from_settings_table
Migrated: 2015_03_15_144612_create_user_activity_table
Migrated: 2015_03_16_220356_create_session_table
Migrated: 2015_03_16_231829_create_profile_fields_table
Migrated: 2015_03_16_232644_create_profile_field_options_table
Migrated: 2015_03_16_232844_create_user_profile_fields_table
Migrated: 2015_03_19_190100_create_polls_table
Migrated: 2015_03_19_211900_create_poll_votes_table
Migrated: 2015_03_21_114200_add_mybb_captcha
Migrated: 2015_03_23_213855_create_profile_field_group_table
Migrated: 2015_03_29_103911_create_likes_table
Migrated: 2015_03_29_145952_add_num_likes_to_users_table
Migrated: 2015_03_29_145958_add_num_likes_to_posts_table
Migrated: 2015_04_03_143500_remove_role_id_from_users
Migrated: 2015_04_03_143501_create_role_user_pivot_table
Migrated: 2015_04_03_143502_modify_permissions_table
Migrated: 2015_04_03_143503_modify_permission_role_table
Migrated: 2015_04_05_120800_create_content_class_table
Migrated: 2015_04_07_132222_add_approved_to_posts_and_topics
Migrated: 2015_04_12_140000_create_conversation_table
Migrated: 2015_04_12_140001_create_conversation_messages_table
Migrated: 2015_04_12_140002_create_conversation_user_table
Migrated: 2015_04_17_113600_remove_unique_slug
Migrated: 2015_04_18_172533_add_closed_to_topics_and_forums_tables
Migrated: 2015_08_03_213002_create_moderation_log_tables
DiegoPino:mybb23 diegopino$ php artisan dbConfusedeed
Seeded: ContentClassTableSeeder
Seeded: UsersTableSeeder
Seeded: RolesTableSeeder
Seeded: RoleUserTableSeeder
Seeded: PermissionsTableSeeder
Seeded: PermissionRoleTableSeeder
Seeded: ForumsTableSeeder
Seeded: TopicsTableSeeder
Seeded: PostsTableSeeder
Seeded: UserSettingsTableSeeder
Seeded: SettingsTableSeeder
Seeded: ProfileFieldsTableSeeder
DiegoPino:mybb23 diegopino$ ls
CONTRIBUTING.md bootstrap database phpspec.yml storage
LICENSE bower.json git-hooks phpunit.xml tests
README.md composer.json gulpfile.js public vendor
app composer.lock package.json resources
artisan config phpcs.xml server.php


Anexo: Image 
[Image: mybb2-xampp-image.png]

Links Soporte:
[Image: 51.jpg]
We11World [ Winning Eleven ] , Blog , Archive Forums
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
Lightbulb
Tutorial
 Install and config Redis on Mac OS X via Homebrew
DiegoPino 0 1,155 08-03-2016, 11:15 PM
Last Post: DiegoPino
Bug
Tutorial
 [ Tutorial ] Plugin MyBB Base & Plugin MySql
DiegoPino 0 2,741 11-20-2015, 01:36 AM
Last Post: DiegoPino

Forum Jump:


Users browsing this thread: 1 Guest(s)