https://github.com/rasbeetech/flask-test
testing of flask
https://github.com/rasbeetech/flask-test
Last synced: 3 months ago
JSON representation
testing of flask
- Host: GitHub
- URL: https://github.com/rasbeetech/flask-test
- Owner: RasbeeTech
- Created: 2021-03-09T23:51:13.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-03-11T21:26:27.000Z (over 5 years ago)
- Last Synced: 2025-01-25T10:26:21.505Z (over 1 year ago)
- Language: HTML
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Flask test
A simple Blog Web App
Python version: 3.8.7
Flask version: 1.1.2
SQLite version: 3.19.3
## Purpose:
Practice using Flask for future use.
## Details
The tutorial on [www.digitalocean.com](https://www.digitalocean.com/community/tutorials/how-to-make-a-web-application-using-flask-in-python-3) to create a web application.
### Usage:
1. initiate database with the following command:
```bash
python3 init_db.py
```
* which will create 'database.db' in the directory. The database will contain 'posts' for the blog and will be initialized with 2 posts.
2. In terminal, navigate to directory of app.py and enter:
```bash
FLASK_APP=app.py flask run
```
3. In a web broswer, navigate to ```127.0.0.1:5000``` to access the web app.