Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/beebus/crispy-spoon
Learning Flask - A course on LinkedIn Learning.
https://github.com/beebus/crispy-spoon
aws-iam aws-s3 flask heroku postgresql-database
Last synced: 22 days ago
JSON representation
Learning Flask - A course on LinkedIn Learning.
- Host: GitHub
- URL: https://github.com/beebus/crispy-spoon
- Owner: beebus
- License: gpl-3.0
- Created: 2019-08-17T08:23:32.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2022-12-26T20:15:49.000Z (almost 2 years ago)
- Last Synced: 2024-10-11T10:16:44.464Z (about 1 month ago)
- Topics: aws-iam, aws-s3, flask, heroku, postgresql-database
- Language: Python
- Homepage: https://www.linkedin.com/learning/learning-flask-2/
- Size: 36.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
![Python package](https://github.com/beebus/crispy-spoon/workflows/Python%20package/badge.svg?branch=master)
# crispy-spoon
flask playground based on https://www.linkedin.com/learning/learning-flask-2```
$ heroku login
```
heroku: Press any key to open up the browser to login or q to exit:
Opening browser to https://cli-auth.heroku.com/auth/browser/...
Logging in... done
Logged in as...
```
$ heroku create
```
Creating app... done, [appname]...
```
$ heroku addons:create heroku-postgresql:hobby-dev -a [appname]
```
Creating heroku-postgresql:hobby-dev on [appname]... free
Database has been created and is available
! This database is empty. If upgrading, you can transfer
! data from another database with pg:copy
Created postgresql-something-37746 as DATABASE_URL
Use heroku addons:docs heroku-postgresql to view documentation
```
$ heroku config -a [appname]
```
(Save the response info)
```
$ sudo pip install --upgrade pip
$ sudo pip install virtualenv
```In a folder with a .py file and a requirements.txt file, run the following.
```
$ virtualenv venv
```
Using base prefix '/usr'... Installing setuptools, pip, wheel...
done.
```
$ source venv/bin/activate
$ pip install -r requirements.txt
$ export FLASK_APP=flask-basic.py
$ flask run
```
* Serving Flask app "flask-basic"
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
127.0.0.1 - - [17/Aug/2019 03:12:39] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [17/Aug/2019 03:12:39] "GET /favicon.ico HTTP/1.1" 404 -