Giter Site home page Giter Site logo

sycct / microblog-authy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from miguelgrinberg/microblog-authy

1.0 1.0 0.0 40 KB

Microblog application from the Flask Mega-Tutorial with added two-factor push authentication via Authy

License: MIT License

Dockerfile 0.51% Python 74.89% HTML 23.65% Shell 0.39% Mako 0.56%

microblog-authy's Introduction

Welcome to Microblog-Authy!

This is the example application featured in my Flask Mega-Tutorial, to which I've added support for two-factor authentication via the Twilio Authy API.

How To Run This Application

Microblog is fairly complex application that is developed over the 23 chapters of the tutorial referenced above. Below you can see how to start the basic application using a local SQLite database, and without including support for emails, full-text search and background tasks. This is enough to demonstrate the two-factor authentication feature.

  1. Create a Python virtual environment and activate it:

    For Unix and Mac computers:

    $ python3 -m venv venv
    $ source venv/bin/activate
    (venv) $ _
    

    For Windows computers:

    $ python -m venv venv
    $ venv\bin\activate
    (venv) $ _
    
  2. Import the Python dependencies into the virtual environment:

    (venv) $ pip install -r requirements
    
  3. Create a local database:

    (venv) $ flask db upgrade
    
  4. Start the development web server:

    (venv) $ flask run
    
  5. Access the application on your web browser at http://localhost:5000. Register a new account, log in, click on "Profile" on the right side of the navigation bar, and then on "Enable two-factor authentication".

Interested in learning more about this application besides two-factor authentication? The actual tutorial is the best reference!

microblog-authy's People

Contributors

miguelgrinberg avatar

Stargazers

Nicholas C.Zakas avatar

Watchers

James Cloos 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.