This is the Official Repository of Smvdu Alumni Portal.
To install this project on your computer , you to have install some dependencies of this project :
Create a database named
Create an user for a database having these credentials
Host: localhost Name: smvdu Password: smvdu
If you clone this project in a directory other than default www/ , then you have to set a new
virtualhostin apache configuration file.Just run set_virtual_host.sh file by writing :-
$ sudo chmod 765 set_virtual_host.sh $ ./set_virtual_host.sh
After this, go to
http://smvdualumni.localhostto access the website(if you have done step 5), otherwise just go to
http://localhost/smvdu-alumni/if your project is in www/ directory.
Use this data during first-time wordpress installing process :-
Site Title : Smvdu Alumni Username : smvdu Password : smvdu Email-Id : firstname.lastname@example.org
We also used a wordpress plugin named as Revisr , to manage Git Integration with wordpress.So, first of all read about it and install/setup it in this project as per in its docs. Click here to read Revisr Doc
For Installing new plugins/themes , you need to have a local FTP server installed .So you should need to install vsftpd package on ubuntu to install ftp server in your computer.Refer this Link to install and setup vsftpd package
Note: Always use revisr plugin dashboard to commit and must tick an option
Backup Database. Otherwise, your changes would not reflect in other team member machine.
Fork this repository to your account, using the Fork button on the top right corner.
git clone to clone your forked repo to your local machine:
(replace 'your_username' with appropriate value)
git clone https://github.com/your_username/smvdu-alumni.git
Set the `upstream` to this repo:
The easiest way is to use the https url:
git remote add upstream https://github.com/smvdu/smvdu-alumni.git
or if you have ssh set up you can use that url instead:
git remote add upstream email@example.com:smvdu/smvdu-alumni.git
Working branch for **sfd-alumni** will always be the `develop` branch. Hence, all the latest code will always be on the *develop* branch. You should always create a new branch for any new piece of work branching from *develop* branch: ``` git branch new_branch ``` **NOTE:** You must not mess with `master` branch or bad things will happen. *master* branch contains the latest stable code, so just leave it be.
Before starting any new piece of work, move to develop branch:
git checkout develop
Now you can fetch latest changes from main repo using: ``` git fetch upstream ```
`rebase` the latest code with *develop* branch: ``` git rebase upstream/develop ```
`checkout` to your newly created branch: ``` git checkout new_branch ```
Rebase the code of *new_branch* from the code in *develop* branch, run the `rebase` command from your current branch: ``` git rebase develop ``` Now all your changes on your current branch will be based on the top of the changes in *develop* branch.
Push your changes to your forked repo
git push origin new_branch
Now, you can simply send the Pull Request to Parent Repo from within the Github.
Always squash up your commits into a single commit before sending the Pull Request. Use
git rebase -i for this purpose. For example to squash last 3 commits into a single commit, simply run:
git rebase -i HEAD~3
####Happy Coding :)