GithubHelp home page GithubHelp logo

shayzalman / python-flask-sample-app Goto Github PK

View Code? Open in Web Editor NEW

This project forked from codefresh-contrib/python-flask-sample-app

0.0 0.0 0.0 17 KB

Dockerized Python Flask Example application

Home Page: https://codefresh.io/docs/docs/getting-started/create-a-basic-pipeline/

Python 64.87% CSS 14.83% HTML 19.23% Dockerfile 1.07%

python-flask-sample-app's Introduction

MiniTwit an example application written in Python/Flask

Original source code from https://github.com/pallets/flask/tree/16d83d6bb413bec09a656a659b98d897e7abcc81/examples/minitwit

Docker instructions

To create a docker image execute:

docker build . -t minitwit

To run the docker image execute:

docker run -p 5000:5000 minitwit and visit with your browser http://localhost:5000

To run unit tests inside the container execute:

docker run minitwit python setup.py test

Original Readme

MiniTwit

because writing todo lists is not fun

What is MiniTwit?

A SQLite and Flask powered twitter clone

How do I use it?

  1. edit the configuration in the minitwit.py file or export an MINITWIT_SETTINGS environment variable pointing to a configuration file.
  2. install the app from the root of the project directory pip install --editable .
  3. tell flask about the right application: export FLASK_APP=minitwit
  4. fire up a shell and run this: flask initdb
  5. now you can run minitwit: flask run

the application will greet you on http://localhost:5000/

Is it tested?

You betcha. Run the python setup.py test file to see the tests pass.

python-flask-sample-app's People

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.