- Installing and Running the Application
- Contribution rules
- Server deployment and run
1.1. Open the terminal, go to the folder where you want coffee-trace repository to be installed and run:
git clone https://github.com/agri-yoda/coffee-trace
1.2. Make sure you have nodejs installed in your system along with any package manager or your choice(npm or yarn)
1.3. Install Angular Globally npm install -g @angular/cli
or yarn global add @angular/cli
, if not done already
1.4. Go to coffee-trace/client
folder and run npm install
or yarn install
to install the dependencies of the application (one time activity)
1.5. Go to coffee-trace/server
folder and run npm install
or yarn install
to install the dependencies of the application (one time activity)
1.5. Go to coffee-trace/client
folder and run ng serve
, and your application shall start up on port 4200
1.6. Fire up a new terminal and go to coffee-trace/server
and run npn run dev
or yarn run dev
, and your server application shall start up on port 3000
(types: bugfix
, feature
)
💻 command: git checkout -b bugfix_FormatPostContent
- Before creating a branch, check if someone already started to work on this task and if there's already a branch created for this task, and if there is, please fetch the branch with the command:
💻 command: git fetch origin bugfix_FormaPostContent:bugfix_FormatPostContent
- Right after creating a new branch, push it to remote to make it available for everyone, defining the upstream.
💻 command: git push -u origin bugfix_FormatPostContent
💻 command: git checkout bugfix_FormatPostContent
... and run ...
💻 command: git pull
💻 command: git checkout bugfix_FormatPostContent
... and run ...
💻 command: git push
1.1. Checkout to master:
git checkout master
1.2. Pull the updates:
git pull
1.3. Checkout to the branch you was working on:
git checkout bugfix_FormatPostContent
1.4. Rebase this branch:
git rebase master
If there are more people working on this branch, let them know you're rebasing.
Conflicts may occur, and it must be resolved on this branch!
The developer is responsible to resolve conflicts and test it on the current branch to make sure the branch is ready and safe to be merged!
Let people know you're opening this pull request.
If you finished working on this branch forever, and you've noticed that the branch was already closed on remote, it makes sense to delete this branch locally:
git branch -d bugfix_FormatPostContent
Are you going back to work on a branch you've created some time ago? Let's make it ready to work again!
git checkout master
git pull
git checkout feature_ThatOldFeature
git pull
git checkout feature_ThatOldFeature
git rebase master
If there's more people working on this branch, let them know you're rebasing.
Conflicts may occur, and it must be resolved right now, before you get back working on the feature!
git push