-
Authentication: User can signup/login/logout
-
Items for sale: User can view lists of items for sale and search by name, filter by price.
-
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".
-
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".
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pip install psycopg2 | |
| sudo apt-get install postgresql postgresql-contrib | |
| sudo apt-get install python-psycopg2 | |
| sudo apt-get install libpq-dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
OlderNewer