Skip to content
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.
/ Flask-Template Public archive

A template for a basic web application built using Flask and Python.

License

Notifications You must be signed in to change notification settings

Kyle-L/Flask-Template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask Template

Overview

This repository serves as a template for a basic web application built using Flask in Python.

Media

Screennshot of homepage

Requirements

  • Git
  • Python3
  • Postgres
  • An IDE of your choice

Local Setup

  1. Clone the repository.
$ git clone git@github.com:Kyle-L/Flask-Template.git
  1. Check into the cloned repository.
cd Flask-Template/app
  1. Install Pipenv using pip, install pip if you haven't already.
pip install pipenv
  1. Setup a virtual environment with Pipenv.
$ python3 -m venv env
  1. Start the virtual environment
$ source env/bin/activate
  1. Install the requirements
$ pip3 install -r requirements.txt
  1. Set environment variables.
$ export FLASK_APP=app
$ export FLASK_DEBUG=1
  1. Setup Postgres database using Flask-SQLAlchemy.
$ python3
>> from app import db, create_app
>> db.create_all(app=create_app())
>> exit()
  1. Run the server.
$ flask run

License

GitHub license

About

A template for a basic web application built using Flask and Python.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published