Skip to content

Latest commit

 

History

History
108 lines (90 loc) · 2.58 KB

CONTRIBUTION.md

File metadata and controls

108 lines (90 loc) · 2.58 KB

Contribution Guidelines

Guidelines for contributing to this project. Must be strictly followed by all team members.
This will guide you from cloning this repository to pushing your contributions.

Forking

Fork this repository to get a personal copy on your GitHub account

Cloning

To clone the forked repository to your local machine, open command prompt and run:

git clone https://github.com/your-account-name/zc_plugin_dm

Change to project directory

Change to the project directory you just cloned

cd zc_plugin_dm

Set Upstream Remote

To set upstream remote, so you can pull changes from upstream to update your repo run:

git remote add upstream https://github.com/zurichat/zc_plugin_dm

Checkout Develop Branch

Checkout develop branch by running

git checkout develop_test_2

Checkout Your Feature Branch

Feature Branching Workflow means you create a new branch for every feature or issue you are working on. It is good practice for the branch name to end with the issue id. So if an issue id is #5 and issue title is Update ReadMe.md then our branch name would be update-readme-#5. create and checkout feature branch by running:

git checkout -b issue-name-id

Setup Development Environment

To set up the development environment to run project run:

install pipenv

pip install pipenv

install required modules

pipenv install -r requirements.txt

Migrate Database

Migrate the database by running:

python manage.py migrate

Set Environment Variables

Create a .env file and add the following config vars:

SECRET_KEY=Averyrandomstringthatwillbehardforanyonetoguessevenyou
DEBUG=True
EMAIL_HOST_USER=
EMAIL_HOST_PASSWORD=

save the file.

Run Project

If you want to test the development environment run:

python manage.py runserver

When You Have Fixed The Issue

When you have finished making changes perform the following to commit your code:

Check status of files to be committed

git status

Stage changes for commit

git add --all

Commit staged changes

git commit -m "descriptive commit message"

Pull Update from Remote

Pull the latest update from the upstream remote repo by running:

git pull upstream develop

Push Local Changes to origin

Push your new fix or feature to the origin remote branch of your feature. If your feature branch title is update-readme-#5 then run:

git push origin update-readme-#5

Make PR

Goto your GitHub account and make a Pull Request to merge your changes to upstream.

Happy Contributing!!!