Git Product home page Git Product logo

flask-examples's Introduction

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).

flask-examples's People

Contributors

berdal84 avatar crayxt avatar dependabot[bot] avatar greyli avatar ivall avatar pandermusubi avatar prattweaks avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.