https://github.com/healeycodes/full-stack-test-for-kano
~2 hour 'Full Stack Development Test' - A blog application that stores user submitted messages which can be retrieved.
https://github.com/healeycodes/full-stack-test-for-kano
Last synced: about 2 months ago
JSON representation
~2 hour 'Full Stack Development Test' - A blog application that stores user submitted messages which can be retrieved.
- Host: GitHub
- URL: https://github.com/healeycodes/full-stack-test-for-kano
- Owner: healeycodes
- License: mit
- Created: 2018-07-13T17:29:30.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-13T19:22:49.000Z (over 7 years ago)
- Last Synced: 2025-07-02T14:07:38.210Z (9 months ago)
- Language: HTML
- Homepage:
- Size: 58.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Full Stack Development Test

A Flask blog application, serving a mobile-first responsive page that accepts user messages via an HTML form. Messages are saved to an SQLite database within the package folder and can be retrieved with an included Python script.
### Build
Note: tested on Python v3.6.5
`pip install -r requirements.txt` or alternatively you can just `pip install Flask`
`cd kano_blog`
`python create_db.py`
### Run for development
Flask local server with debugging on:
```
python create_db.py
python app.py
* Debug mode: on
* Restarting with stat
* Debugger is active!
* Debugger PIN: 111-709-776
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
```
### Run for production
`pip install waitress`
```
python create_db.py
waitress-serve --call 'kano_blog:create_app'
Serving on http://0.0.0.0:8080
```
Docs: http://flask.pocoo.org/docs/1.0/tutorial/deploy/?highlight=deploy
### Get user messages
Print all messages, delimited by pipe symbol
`python print_messages.py`
(Optional) add the hardcoded test message
`python print_messages.py add_test_msg`