- Check if you already have github on your desktop.
git --version
- If not, install github on your desktop. For linux users here's how:
sudo apt-get update
sudo apt-get install build-essential libssl-dev libcurl4-gnutls-dev libexpat1-dev gettext unzip
Now you have to set-up git first by entering your credentials at Github
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
- Yay, so you have github now. You can now download a local copy of our repository. Go to your favorite place (I recommend use /desktop) first then:
https://github.com/DavidBenavidez/regics-server
- Create the database using yarn.
yarn seed
then you will be prompted to enter your password.
- Populate the database with initial data.
yarn populate
- Install the dependencies
yarn install
again, you will be prompted to enter your password.
- Run the server
yarn start
- Now each time you create your module, you create a new branch. Do NOT ever push something to master. ALWAYS create a new branch and then do your magic there To create a new branch:
git checkout -b [name_of_your_new_branch]
- When you feel like you've done something~ then that can be a COMMIT already. Here's an example of a commit.
git add .
git commit -m "Fixed bugs at Profile Page"
- You can make as many commits as possible. You should push your commits to your branch if you wish to save it.
git push origin [name_of_your_created_branch]
- Now if you feel that you're done for your module, then you can now send it for merging! Create a pull request from your branch.