Setup Your Development Environment

From Wiki | Valse Technologies
Revision as of 06:47, 5 August 2019 by Admin (talk | contribs) (Created page with "START HERE: ********************************* 1. Install Atom ide x64 ********************************* Install atom-beautify, php-cs-fixer, ide-php, livereload, intentions...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

START HERE:


1. Install Atom ide x64

Install atom-beautify, php-cs-fixer, ide-php, livereload, intentions, busy-signal, linter and linter-ui-

default.

atom-beautify>setting executable>php first file directory copy wampstack php file directory path put \php.exe

              second file directory copy user (name) .atom packages php-cs-fixer file directory path

(find https://github.com/FriendsOfPHP/PHP-CS-Fixer and download php-cs-fixer.phar and copy it into user (name) .atom packages php-cs-fixer file directory path and copy

"php-cs-fixer.phar" to the file directory path php>beautify on save and tick it CSS>beautify on save and tick it HTML>beautify on save and tick it

ide-php>setting fourth file directory copy wampstack php file directory path put \php.exe livereload>setting tick both apply image live and auto start server php-cs-fixer>setting first file directory copy wampstack php file directory path put \php.exe

Update settings in Atom

============

File > Config > Settings > Core Send telemetry to the atom team section Do not send any telemetry data Packages type welcome click setting tick off show on startup Packages find line-ending-selector find default line ending and choose LF


2. Then register in gitlab.com

Fill in the form and follow the registration procedure

Check for git gui in your PC, if you don't have it then install it from https://www.linode.com/docs/development/version-control/how-to-install-git-on-linux-mac-and-windows/

Create New folder and name it Repository in work drive in any folder you create for it.

Choose create repository and browse for your Repository folder.

All projects will reside here. No action needed for now.



3. WAMP Installation

If you have wampserver in your PC, remove the wampserver in control panel>program features.

Go to https://bitnami.com/stack/wamp choose WAMP 7.0.32-2 64-bit 199MB windows 64-bit.

After install the Bitnami.

Choose manage server :-

mysql>configure>change 3306 to 3307 and restart it

apache>configure>change 80 to 81 and restart it


WAMPSERVER SETUP

====

Go to C:\Bitnami\wampstack-7.0.32-2\apache2\conf copy httpd.conf for backup, add BAK to the file name after backup and drag the httpd.conf on to atom

HTTPD.CONF

in this section (Change this to Listen on specific IP addresses as shown below to

prevent Apache from glomming onto all bound IP addresses.) below Listen 81 add Listen 8000 and leave a 

space below (important)

in ServerAdmin section change the server admin below to your valse mail address

in (Deny access to the entirety of your server's filesystem) section change none to All and below place #

to comment it

in (Controls who can get stuff from this server.) section put Order allow,deny and Allow from all above

Required all granted and comment the following line with #

in (<Directory "C:/Bitnami/wampstack-7.0.32-2/apache2/cgi-bin">) section change none to All and comment

the two lines below

Go to C:\Bitnami\wampstack-7.0.32-2\apache2\conf\extra copy httpd-vhosts.conf for backup, add BAK to the file name after backup and drag the httpd-vhosts.conf on to atom

HTTPD-VHOSTS.CONF

in virtual host section comment the first virtualhost table the second table change 80 to 8000 change server admin mail to your valse mail Document root change the current directory to your repository directory server name change to localhost remove error log and custom log put <Directory "">

       AllowOverride All
       Order allow,deny
       Allow from all
   </Directory>

and put your repository directory on directory section ("")

go to https://docs.gitlab.com/ee/gitlab-basics/start-using-git.html find git --version section and new tab download.git find installing window section and create new tab on the download link install git and everything default

in loadmodule section uncomment vhost_alias_module modules/mod_vhost_alias.so and in virtual host section uncomment Include conf/extra/httpd-vhosts.conf

comment the virtual host 8000 and put UseCanonicalName Off <VirtualHost *:8000>

   ServerAdmin ***
   DocumentRoot "***"
   ServerName localhost
   <Directory "***">
       AllowOverride All
       Order allow,deny
       Allow from all
   </Directory>

</VirtualHost> <VirtualHost *:8000>

   ServerAlias *.localhost
   VirtualDocumentRoot "***/%1/"

</VirtualHost>

and then restart apache in bitnami and localhost:8000 should show forbidden Find C:\Windows\System32\drivers\etc in your PC Backup the host file

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ exclude line ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Run Notepad as Administrator Load the C:\Windows\System32\drivers\etc\host in the Notepad

Add these lines at the bottom of the file

127.0.0.1 valse-vivace-framework.localhost

valse-vivace-framework.localhost should be replaced with any project folder

E.g. if new project is D:\Repository\kengdim, then you should add: 127.0.0.1 kengdim.localhost

Look for the project URL in Gitlab.com E.g. https://gitlab.com/valsetech/valse-vivace-framework


Reference for Git connect: http://www.ntu.edu.sg/home/ehchua/programming/howto/Git_HowTo.html

Under "3.3 Cloning a Project from a Remote Repo (git clone <remote-url>)"

Put your Gitlab (username) and password

So in short, need to 1) create database 2) import MVC / Vivace SQL into database 3) create database user 4) link database user to database (grant all privileges)

remember, if local PC / laptop, your environment is always SIT

on your right you will see Unstaged Changes. So what you need to do is make it to Staged

Everytime you want to upload, must put in commit message. It must explain what you did. Understand?meow

So...

0) Click Fetch button on bottom right (this is similar to download) 1) Make code changes 2) Click on "Stage all" to stage the file changes 3) Write commit message 4) Click on "Commit to master" 5) Click on Push on bottom right (this is similar to upload)



4. Installation of MySQLworkbench 8.0 ce (community edition)

Go to https://dev.mysql.com/downloads/workbench/

Look for Windows (x86, 64-bit), MSI Installer (mysql-workbench-community-8.0.13-winx64.msi)

Choose No thanks, just start my download.