GitXplorerGitXplorer
g

flask-realworld-example-app

public
905 stars
310 forks
25 issues

Commits

List of commits on branch master.
Verified
4b95fb2227dfeb5dd1a45d89b2bf48630b93fd28

Merge pull request #27 from Allianzcortex/master

rrealazizk committed 5 years ago
Unverified
4464881e2ce5183654cae786a8f313d22d48cda2

fix failed unittest

AAllianzcortex committed 5 years ago
Verified
e706036011c4e3f2021ccbca3595bd2e995b23e8

Merge pull request #26 from Allianzcortex/master

rrealazizk committed 5 years ago
Verified
db63e3c46e9f863a63d70a9db6d69d0046b6dd0d

[Bug Fix] [Add compatible code] deal API changes for marshmallow from 2 to 3

AAllianzcortex committed 5 years ago
Unverified
b49f3014f98c8a62ab2ba079b8e8dd11e96180a2

AppenderQuery error with newer versions

rrealazizk committed 6 years ago
Verified
c66327d15db848cd747bac43924bf12f5c6e9467

Merge pull request #21 from nwalsh1995/patch-1

rrealazizk committed 6 years ago

README

The README file for this repository.

.. image:: image.png

Quickstart

CircleCI build:

.. image:: https://circleci.com/gh/gothinkster/flask-realworld-example-app.png

First, set your app's secret key as an environment variable. For example, add the following to .bashrc or .bash_profile.

.. code-block:: bash

export CONDUIT_SECRET='something-really-secret'

Before running shell commands, set the FLASK_APP and FLASK_DEBUG environment variables ::

export FLASK_APP=/path/to/autoapp.py
export FLASK_DEBUG=1

Then run the following commands to bootstrap your environment ::

git clone https://github.com/gothinkster/flask-realworld-example-app.git
cd flask-realworld-example-app
pip install -r requirements/dev.txt

Run the following commands to create your app's database tables and perform the initial migration ::

flask db init
flask db migrate
flask db upgrade

To run the web application use::

flask run --with-threads

Deployment

In your production environment, make sure the FLASK_DEBUG environment variable is unset or is set to 0, so that ProdConfig is used, and set DATABASE_URL which is your postgresql URI for example postgresql://localhost/example (this is set by default in heroku).

Shell

To open the interactive shell, run ::

flask shell

By default, you will have access to the flask app and models.

Running Tests

To run all tests, run ::

flask test

Migrations

Whenever a database migration needs to be made. Run the following commands ::

flask db migrate

This will generate a new migration script. Then run ::

flask db upgrade

To apply the migration.

For a full migration command reference, run flask db --help.