Git Product home page Git Product logo

flask_web_app's Introduction

Flask App

Simple demo app with basic CRUD functionality to handle notes/posts or todos logic.

What's included?

  • Blueprints
  • Flask-Admin micro-framework for user and permissions management and CRUD functionality
  • Flask-Login for user authorization
  • Flask-SQLAlchemy for databases
  • Flask-Migrate for managing changes of database structure
  • Flask-WTF for forms
  • Flask-Mail for sending confirmation emails, reseting password
  • Basic CRUD functionality for notes and todos
  • Profile managment changing email and password using mail authorization with tokens

Demos

Notes CRUD Page:

Notes

Todos CRUD Page:

Todos

User Editing Page:

edit user

Admin Page:

admin

Registering User:

registering

Quick start

  1. Install all dependencies in virtual environment pipenv install
  2. Setup environment variables in example.env and rename it to just '.env' : SECRET_KEY, MAIL_USER, MAIL_PASSWORD, SECURITY_PASSWORD_SALT (default email provider - gmail)
  3. Run virtual environment pipenv shell
  4. First create db python3 manage.py db init
  5. Create migrations python3 manage.py db migrate
  6. Upgrade db python3 manage.py db upgrade
  7. Creates admin user python3 -c 'from manage import create_admin; create_admin()' natively created with user [email protected] password Password1, recommended to change password straightaway
  8. flask run

Upgrade db model

If you want to upgrade previosly created and used db ( after changes to the structure).

  1. Close the app
  2. python3 manage.py db migrate
  3. python3 manage.py db upgrade
  4. flask run

License

MIT License

flask_web_app's People

Contributors

ppruchnicki avatar

Watchers

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