Giter Site home page Giter Site logo

jonelr / flask_template Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 227 KB

A simple project template with authentication included

Python 62.49% Mako 3.35% HTML 29.94% CSS 1.87% JavaScript 0.90% Shell 1.45%
flask flask-bcrypt flask-login flask-migrate flask-sqlalchemy flask-wtf

flask_template's Introduction

Flask Template for New Projects

Flask Template using Python and the following modules:

  • Flask
  • Flask-Brypt
  • Flask-Login
  • Flask-Migrate
  • Flask-SQLAlchemy
  • Flask-WTF

Quick Start Using Pipenv

# Activate venv
$ pipenv shell

# Create instance folder
$ mkdir instance

# Create config.py inside the instance folder and fill 
# with the approriate variable you wish to override from 
# the root config.py.
#
# Update the SECRET_KEY, SQLALCHEMY_DATABASE_URI to the 
# appropriate values.
$ touch instance/config.py

# Install dependencies
$ pipenv install

# Create DB
$ flask db migrate 
$ flask db upgrade

# Create first user
$ flask user create [email protected]
>>> Adding new user...
>>> Password: 
>>> Date added: 2022-11-16 15:07:35.168473
>>> [email protected] created

# Run Server (http://localhost:5000)
flask run

Endpoints

  • GET /
  • GET,POST /login
  • GET /logout

Screenshots

Home Page

Home page

Login Page

Home page

flask_template's People

Contributors

jonelr avatar

Watchers

 avatar

flask_template's Issues

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.