

werkzeug_movie_app
source link: https://gitlab.com/patkennedy79/werkzeug_movie_app
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Overview
This project demonstrates how to use Werkzeug (key module of Flask) to build a web application.
The application stores your favorite movies in a Redis in-memory data store:
Installation Instructions
Pull down the source code from this GitLab repository:
git clone [email protected]:patkennedy79/werkzeug_movie_app.git
Create a new virtual environment:
$ cd werkzeug_movie_app
$ python3 -m venv venv
Activate the virtual environment:
$ source venv/bin/activate
Install the python packages in requirements.txt:
(venv) $ pip install -r requirements.txt
Run the Development Server
In the top-level directory, run the Werkzeug development server to serve the application:
(venv) $ python app.py
Navigate to 'http://localhost:5000' to view the website!
Key Python Modules Used
- Werkzeug - collection of libraries that can be used to create a WSGI (Web Server Gateway Interface) web application in Python.
- Jinga - templating engine
- py-redis - Python interface to Redis data storage
This application is written using Python 3.9.2.
Testing
To run all the tests:
(venv) $ pytest -v
To check the code coverage of the tests:
(venv) $ pytest --cov-report term-missing --cov=app
Recommend
-
131
Flask Flask is a lightweight WSGI web application framework. It is designed to make getting started quick and easy, with the ability to scale up to complex applications. It began...
-
16
README.rst Werkzeug werkzeug German noun: "tool". Etymology: werk ("work"), zeug ("stuff") Werkzeug is a comprehensiv...
-
3
This article explains what Werkzeug is and how Flask uses it for its core HTTP functionality. Along the way, you'll develop your own WSGI-com...
-
15
movie-react-native-app Ejemplo de react native movie app, basado en The movie Database API y Expo cli. ...
-
5
New Major Versions Released! Flask 2.0, Werkzeug 2.0, Jinja 3.0, Click 8.0, ItsDangerous 2.0, and MarkupSafe 2.0 written by David Lord on 2021-05-11 in...
-
11
Welcome to your new Osmi Kit App! The latest and greatest boilerplate for LibsCode & CloudGakkai opinions This is the boilerplate that LibsCode and C...
-
4
Vid DivaTV show and movie tracking app for iPhone and iPad...
-
9
Movie Movie APP Project Built With React Native Feb 19, 2022 2 min read REACTFLIX Projeto clone de APP de filmes. Integraç...
-
4
Programmiersprache Rust: Makros - Einführung in ein unverzichtbares Werkzeug In Rust sind Makros ein mächtiges Werkzeug, das nicht mit den einfachen Textersetzungen i...
-
6
Werkzeug简介 Flask 和 Werkzeug 之间的关系可以理解为 Flask 是建立在 Werkzeug 基础之上的一个 Web 框架。要了解它们之间的关系,我们需要先分别理解 Flask 和 Werkzeug 的角色和功能。
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK