• Stars
    star
    185
  • Rank 207,029 (Top 5 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 5 years ago
  • Updated about 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Example applications for Flask learners.

Flask Examples

Example applications for Flask beginners.

Installation

First, you need to clone this repository:

git clone [email protected]:greyli/flask-examples.git

Or:

git clone https://github.com/helloflask/flask-examples.git

Then change into the flask-examples folder:

cd flask-examples

Now, we will need to create a virtual environment and install all the dependencies:

python3 -m venv venv  # on Windows, use "python -m venv venv" instead
. venv/bin/activate   # on Windows, use "venv\Scripts\activate" instead
pip install -r requirements.txt

How to Run a Specific Example Application?

Before run a specific example application, make sure you have activated the virtual enviroment.

For example, if you want to run the Hello application, just execute these commands:

cd hello
flask run

Similarly, you can run HTTP application like this:

cd http
flask run

The applications will always running on http://localhost:5000.

Example Applications Menu

  • Hello (/hello): Say hello with Flask.
  • HTTP (/http): HTTP handing in Flask.
  • Templates (/templates): Templating with Flask and Jinja2.
  • Form (/form): Form handing with Flask-WTF (WTForms), File upload and integrating with Flask-CKEditor, Flask-Dropzone.
  • Database (/database): Database with Flask-SQLAlchemy (SQLAlchemy).
  • Email (/email): Email with Flask-Mail, SendGrid
  • Assets (/assets): Assets profiling with Flask-Assets.
  • Cache (/cache): Cache with Flask-Caching.

Advanced Examples Flask Applications

  • SayHello: A simple message board.
  • Bluelog: A blog engine that supports category and resource management.
  • Albumy: A full-featured photo-sharing social networking.
  • Todoism: A to-do application implements as SPA, it supports i18n and provides web APIs.
  • CatChat: A chat room based on WebSocket.

Contributions

Any contribution is welcome, just fork and submit your PR.

License

This project is licensed under the MIT License (see the LICENSE file for details).

More Repositories

1

bootstrap-flask

Bootstrap 4 & 5 helper for your Flask projects.
SCSS
1,109
star
2

flask-tutorial

Flask ε…₯门教程 / Flask for Beginners
HTML
804
star
3

watchlist

Example application for Flask tutorial "Flask ε…₯门教程".
Python
260
star
4

flask-dropzone

Upload files in Flask application with Dropzone.js.
Python
250
star
5

flask-ckeditor

CKEditor integration for Flask, including image upload, code syntax highlight, and more.
JavaScript
199
star
6

flask-origin

Flask 0.1η‰ˆζœ¬ζΊη ζ³¨θ§£γ€‚
Python
179
star
7

flask-jobs

Flask-related job opportunities.
74
star
8

todo

This project is deprecated in favour of Todoism.
HTML
66
star
9

timer

A simple countdown timer made with Flask and JavaScript.
CSS
55
star
10

calculator

A Calculator made by Flask and JavaScript.
HTML
48
star
11

flask-avatars

All avatar generators in one place.
JavaScript
28
star
12

flask-upload-dropzone

Flask File Upload with Dropzone.js.
JavaScript
28
star
13

cloud-drive

A minimal photo upload and manage system with Flask and Flask-Uploads (Multiple file upload support!).
Python
26
star
14

flask-share

Create social share component in Jinja2 template based on share.js.
Python
20
star
15

guess

A Flask version of "Guess the Number" game.
HTML
20
star
16

flemi-api

Flemi API
Python
10
star
17

github-login

Example application for login with GitHub by GitHub-Flask
Python
8
star
18

flask-structure

Different application structure for Flask.
Python
3
star
19

flemi-front

The frontend part of the Flemi project
TypeScript
1
star
20

flask-sse-demo

Example application for Server-Sent Event by Flask-SSE
HTML
1
star