Skip to content

Instantly share code, notes, and snippets.

View amonmoce's full-sized avatar

Amon Moce Rodolphe BAZONGO amonmoce

View GitHub Profile
If you get following error, when you try to start nginx…
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
Then it means nginx or some other process is already using port 80.
You can kill it using:
sudo fuser -k 80/tcp
pip install psycopg2
sudo apt-get install postgresql postgresql-contrib
sudo apt-get install python-psycopg2
sudo apt-get install libpq-dev

User Stories

  1. Authentication: User can signup/login/logout

  2. Items for sale: User can view lists of items for sale and search by name, filter by price.

  3. Shopping Cart: User can add items to shopping cart and the app remembers it next time you login. User can view all the items in their shopping cart. User can delete items in the shopping cart. Shopping cart uses an integer column to store "state".

  4. Checkout: User can fill in form and submit billing info. After submitting billing info, items in the shopping cart will move to a different "state".

# Ubuntu 16.04 (default Python 3.5), not Ubuntu => go install
sudo apt-get install software-properties-common
sudo apt-add-repository universe
sudo apt-get update
sudo apt-get install python-pip python3-dev python3-venv
# Environnements folders
mkdir venvs
# Specify the system python3 installation
python3 -m venv venvs/flaskproj
# Activate the virtualenv
brew update && brew install azure-cli
# create azure account
# create azure directory
# can create user in that directory
# create subscription in that directory
az login