Code Monkey home page Code Monkey logo

flask-ordering-system's Introduction

Flask-Ordering-System

Getting Started

Make sure you have Python and PyCharm in your local machine

Go to command prompt and try

python

Then type these lines

>>> import os
>>> import sys
>>> os.path.dirname(sys.executable)

Copy the given path

Go to your PyCharm, go to

File -> Settings -> Project Interpreter -> Add Local -> New Environment -> Basic Interpreter -> 'Paste the Path' -> OK

Change directory to project

Now Activate virtual environment

source venv/Scripts/activate

Lastly, install packages

pip3 install -r requirements.txt

If you want to exit the virtual environment

deactivate

Git Command

Reset local repository branch like the remote repository HEAD:

git fetch origin
git reset --hard origin/branch_name

Create branch on local and remote

git checkout -b name_branch
git push origin name_branch

Delete branch on local and remote

git checkout master
git branch -d name_branch_local
git push origin --delete name_branch_remote

Set Upstream

On your local branch git branch --set-upstream-to origin/your_branch On your master branch git branch --set-upstream-to origin/master

Merge Conflict with branch

Step 1: From your project repository, bring in the changes and test.

git fetch origin
git checkout -b name_branch origin/name_branch
git merge master

Step 2: Merge the changes and update on GitHub.

git checkout master
git merge --no-ff name_branch
git push origin master

Workflow

Setup:

  1. In the terminal/Shell, go to the directory where you want to place the team project, then use the following command to clone our project:

    git clone https://github.com/sengfung27/Python-Online-Ordering-System.git

  2. change directory to microblog then use the following command to see local branch:

    git branch

  3. you should only see a master branch. Now, run following command to see all remote branch:

    git branch -r

  4. then fetch your own branch:

    git fetch origin your_branch:your_branch

  5. use git branch to see all local branch, you should see your branch and the master branch.

  6. go to your branch by doing git checkout your_branch, set upstream branch:

    git branch --set-upstream-to origin/your_branch


How to work?

  • Your branch belongs to your self, here is where you work. However, do not work on master branch. To switch to your branch. Use git checkout your_branch Use git branch to see where you are.

  • When you finish a model (design and implementation, including testing), you have to merge your code to the develop branch, by doing the following things:

    1. git checkout master

    2. git pull

    3. git merge your_branch

    4. git push. If conflict happen, solve conflict and commit, then do git push

flask-ordering-system's People

Contributors

edwin0108 avatar sengfung27 avatar zhuoyingcai avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.